aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/adlmidi-2/CMakeLists.txt3
-rw-r--r--utils/midiplay/CMakeLists.txt3
2 files changed, 2 insertions, 4 deletions
diff --git a/utils/adlmidi-2/CMakeLists.txt b/utils/adlmidi-2/CMakeLists.txt
index 87fa810..6a31a33 100644
--- a/utils/adlmidi-2/CMakeLists.txt
+++ b/utils/adlmidi-2/CMakeLists.txt
@@ -8,9 +8,8 @@ find_package(OpenMP)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
if(NOT WIN32 AND NOT DJGPP AND NOT MSDOS)
- find_library(SDL2_LIBRARY SDL2 REQUIRED)
+ find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIR})
- message("Found ${SDL2_LIBRARY}")
endif()
if(NOT WIN32 AND NOT DJGPP AND NOT MSDOS)
diff --git a/utils/midiplay/CMakeLists.txt b/utils/midiplay/CMakeLists.txt
index ac5d4c2..8aef37f 100644
--- a/utils/midiplay/CMakeLists.txt
+++ b/utils/midiplay/CMakeLists.txt
@@ -4,9 +4,8 @@ project(adlmidiplay CXX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
if(NOT MSDOS AND NOT DJGPP AND NOT MIDIPLAY_WAVE_ONLY)
- find_library(SDL2_LIBRARY SDL2 REQUIRED)
+ find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIR})
- message("Found ${SDL2_LIBRARY}")
else()
unset(SDL2_LIBRARY)
endif()