aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Novichkov <Wohlstand@users.noreply.github.com>2018-05-08 13:14:25 +0300
committerGitHub <noreply@github.com>2018-05-08 13:14:25 +0300
commit043ba92381e3572fb6d58112b7bc31d6fd21fdd2 (patch)
tree9c7992c7a008c74c765b5ade228fcdf449a80687
parenta494a8c959d80016073d1c7f499408dbbc4c9815 (diff)
downloadlibADLMIDI-043ba92381e3572fb6d58112b7bc31d6fd21fdd2.tar.gz
libADLMIDI-043ba92381e3572fb6d58112b7bc31d6fd21fdd2.tar.bz2
libADLMIDI-043ba92381e3572fb6d58112b7bc31d6fd21fdd2.zip
CMake: Use different strategy to identify MinGW if CMAKE_CXX_COMPILER_ID doesn't gives "GNU"
-rw-r--r--CMakeLists.txt5
1 files 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 $<$<COMPILE_LANGUAGE:CXX>:-std=c++11>)
endif()
else(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")