diff options
author | Alexander Grund <alexander.grund@tu-dresden.de> | 2018-12-13 10:35:38 +0100 |
---|---|---|
committer | Alexander Grund <alexander.grund@tu-dresden.de> | 2018-12-13 10:42:21 +0100 |
commit | 2fd13442097f92350ee481361f73015c918d91b5 (patch) | |
tree | 3c80cca0d8bb7ec8dd086b31fc7c3c24d7f783fc /utils/adlmidi-2 | |
parent | 24d7bc8fa17765695752eddfb51865d983dc5cf8 (diff) | |
download | libADLMIDI-2fd13442097f92350ee481361f73015c918d91b5.tar.gz libADLMIDI-2fd13442097f92350ee481361f73015c918d91b5.tar.bz2 libADLMIDI-2fd13442097f92350ee481361f73015c918d91b5.zip |
Improve compiler checks
Diffstat (limited to 'utils/adlmidi-2')
-rw-r--r-- | utils/adlmidi-2/CMakeLists.txt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/utils/adlmidi-2/CMakeLists.txt b/utils/adlmidi-2/CMakeLists.txt index 087c06a..e9c1f7d 100644 --- a/utils/adlmidi-2/CMakeLists.txt +++ b/utils/adlmidi-2/CMakeLists.txt @@ -59,11 +59,7 @@ if(NOT WITH_CPP_EXTRAS) message(FATAL_ERROR "ADLMIDI2 Requires C++ Extras. Please enable WITH_CPP_EXTRAS option!") endif() -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_CXX_COMPILER_ID MATCHES "GNU|Clang|Intel|MinGW" OR MINGW) if(OPENMP_FOUND) target_compile_options(adlmidi2 PUBLIC "-fopenmp") target_link_libraries(adlmidi2 PRIVATE "-fopenmp") |