mirror of
https://github.com/KjellKod/g3log.git
synced 2025-02-24 15:26:53 +01:00
Ensure Clang and AppleClang are recognized by CMake script
As of CMake 3.0, the CMAKE_<LANG>_COMPILER_ID variable can take on two different values for Clang: "Clang" and "AppleClang", the latter referring to the Clang distributed by Apple with Xcode. Therefore, update the compiler check to match CMAKE_<LANG>_COMPILER_ID against the regular expression ".*Clang".
This commit is contained in:
parent
3eb2ea5e08
commit
c02fe626f8
@ -77,7 +77,7 @@ endif()
|
||||
# description
|
||||
# 1) http://kjellkod.wordpress.com/2013/09/23/experimental-g2log-with-clang/
|
||||
# 2) https://github.com/maidsafe/MaidSafe/wiki/Hacking-with-Clang-llvm-abi-and-llvm-libc
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES ".*Clang")
|
||||
MESSAGE("")
|
||||
MESSAGE("cmake for Clang ")
|
||||
if (APPLE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user