diff --git a/CMakeLists.txt b/CMakeLists.txt index e5228a9..2686285 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,8 +5,6 @@ include(CheckCXXCompilerFlag) include(CheckCXXSourceRuns) include(CheckIncludeFiles) -message(STATUS ${CMAKE_COMPILER_IS_MSVC}) - if(MSVC) if(${MSVC_VERSION} LESS 1900) message(FATAL_ERROR "You are using an unsupported version of Visual Studio " @@ -29,7 +27,7 @@ else() CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14) if(NOT COMPILER_SUPPORTS_CXX14) - if (CMAKE_COMPILER_IS_CLANGXX) + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") # Clang > 3.4 is ok else() message(FATAL_ERROR "Your compiler has no C++14 capability!")