From 490bac7421b5345e5b9035f1430520c751935534 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sat, 21 Oct 2017 14:37:45 +0300 Subject: Fixed MSVC2015 build --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') 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 $<$:-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() -- cgit v1.2.3