From 6779add790eb2e9f599422fb003f62b6ee48de20 Mon Sep 17 00:00:00 2001 From: freiro Date: Thu, 1 Dec 2016 01:26:53 +0100 Subject: [PATCH] Improved clang-cl recognition --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 026d51c80..37e2206d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,7 +62,7 @@ if (NOT DEFINED ARCHITECTURE) endif() message(STATUS "Target architecture: ${ARCHITECTURE}") -IF (WIN32 AND (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")) +IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND "${CMAKE_CXX_SIMULATE_ID}" STREQUAL "MSVC") set(CMAKE_CXX_FLAGS "-Xclang -std=c++14")# -Qunused-arguments -Xclang -Wno-missing-braces ") ELSE() set(CMAKE_CXX_STANDARD 14)