From: Alec Thomas Date: Wed, 24 Dec 2014 09:07:50 +0000 (+1100) Subject: CMake fix for AppleClang. X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=532834612856611f9483cbfdb3ffd08bfc987a22;p=clyne%2Fentityx.git CMake fix for AppleClang. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d8601c..c026e6c 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ include(${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake) include(CheckCXXSourceCompiles) # Default compiler args -if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") +if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|.*Clang)") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Werror -Wall -Wextra -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=sign-compare -std=c++11") set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") set(CMAKE_CXX_FLAGS_MINSIZEREL "-g -Os -DNDEBUG")