diff options
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() |