From 043ba92381e3572fb6d58112b7bc31d6fd21fdd2 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Tue, 8 May 2018 13:14:25 +0300 Subject: CMake: Use different strategy to identify MinGW if CMAKE_CXX_COMPILER_ID doesn't gives "GNU" --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bda3e0b..dce3bd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -141,9 +141,10 @@ if(WITH_EMBEDDED_BANKS) endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR - "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") + "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" OR + CMAKE_COMPILER_IS_MINGW) if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.2) - message("Turned on C++11 on GCC/CLang/Intel") + message("Turned on C++11 on GCC/CLang/Intel/MinGW") target_compile_options(gen_adldata PUBLIC $<$:-std=c++11>) endif() else(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") -- cgit v1.2.3