aboutsummaryrefslogtreecommitdiff
path: root/utils/midiplay
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-12-13 11:03:37 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-12-13 11:03:37 +0300
commitc43c8b1293f1766abfef5689c8d21fb0fd124f6f (patch)
treef57cff956827380e75dcb2151e2be369418fff08 /utils/midiplay
parentf80bfa9732312e74e2494ed81231d61c78f83350 (diff)
downloadlibADLMIDI-c43c8b1293f1766abfef5689c8d21fb0fd124f6f.tar.gz
libADLMIDI-c43c8b1293f1766abfef5689c8d21fb0fd124f6f.tar.bz2
libADLMIDI-c43c8b1293f1766abfef5689c8d21fb0fd124f6f.zip
Put back "find_library" of SDL2
Unfortunately, the "find_package" fails on some cases
Diffstat (limited to 'utils/midiplay')
-rw-r--r--utils/midiplay/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/midiplay/CMakeLists.txt b/utils/midiplay/CMakeLists.txt
index 8aef37f..ac5d4c2 100644
--- a/utils/midiplay/CMakeLists.txt
+++ b/utils/midiplay/CMakeLists.txt
@@ -4,8 +4,9 @@ project(adlmidiplay CXX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
if(NOT MSDOS AND NOT DJGPP AND NOT MIDIPLAY_WAVE_ONLY)
- find_package(SDL2 REQUIRED)
+ find_library(SDL2_LIBRARY SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIR})
+ message("Found ${SDL2_LIBRARY}")
else()
unset(SDL2_LIBRARY)
endif()