diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-10-21 14:37:45 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-10-21 14:37:45 +0300 |
commit | 490bac7421b5345e5b9035f1430520c751935534 (patch) | |
tree | 727b1e6fb54439de92a3339cdb02a387cb80a47b /CMakeLists.txt | |
parent | 352660262dfd05cc75b5f2099507c9f29953a270 (diff) | |
download | libADLMIDI-490bac7421b5345e5b9035f1430520c751935534.tar.gz libADLMIDI-490bac7421b5345e5b9035f1430520c751935534.tar.bz2 libADLMIDI-490bac7421b5345e5b9035f1430520c751935534.zip |
Fixed MSVC2015 build
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fb870c..4728a30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,9 @@ if(WITH_EMBEDDED_BANKS) ${libADLMIDI_SOURCE_DIR}/src/nukedopl3.c ${libADLMIDI_SOURCE_DIR}/src/dbopl.cpp ) - target_link_libraries(gen_adldata pthread) + if(NOT MSVC) + target_link_libraries(gen_adldata pthread) + endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") message("Turned on C++11 on GCC") target_compile_options(gen_adldata PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-std=c++11>) @@ -157,7 +159,11 @@ if(WITH_MIDIPLAY) ) if(WIN32) - target_link_libraries(adlmidiplay ADLMIDI ${SDL2_LIBRARY} pthread) + if(MSVC) + target_link_libraries(adlmidiplay ADLMIDI ${SDL2_LIBRARY}) + else() + target_link_libraries(adlmidiplay ADLMIDI ${SDL2_LIBRARY} pthread) + endif() else() target_link_libraries(adlmidiplay ADLMIDI ${SDL2_LIBRARY} pthread dl) endif() |