diff options
author | Vitaly Novichkov <Wohlstand@users.noreply.github.com> | 2018-05-08 13:19:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 13:19:57 +0300 |
commit | 61991cfd68afd7531b3d865c7870b10fc4a43de6 (patch) | |
tree | 34fd103374a6c1c223b55413db9f9027b1ee6927 | |
parent | 87a8b80b017281158547edc72db33e93d49b9ade (diff) | |
download | libADLMIDI-61991cfd68afd7531b3d865c7870b10fc4a43de6.tar.gz libADLMIDI-61991cfd68afd7531b3d865c7870b10fc4a43de6.tar.bz2 libADLMIDI-61991cfd68afd7531b3d865c7870b10fc4a43de6.zip |
CMake: Another attempt to fix MinGW build
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dce3bd3..f175476 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,9 +139,10 @@ if(WITH_EMBEDDED_BANKS) if(NOT MSVC) target_link_libraries(gen_adldata pthread m stdc++) endif() - if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR - CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR + if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR + "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" OR + "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MinGW" OR CMAKE_COMPILER_IS_MINGW) if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.2) message("Turned on C++11 on GCC/CLang/Intel/MinGW") |