From c43c8b1293f1766abfef5689c8d21fb0fd124f6f Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Thu, 13 Dec 2018 11:03:37 +0300 Subject: Put back "find_library" of SDL2 Unfortunately, the "find_package" fails on some cases --- examples/sdl2_audio/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/sdl2_audio/CMakeLists.txt') diff --git a/examples/sdl2_audio/CMakeLists.txt b/examples/sdl2_audio/CMakeLists.txt index 45fd654..6061b92 100644 --- a/examples/sdl2_audio/CMakeLists.txt +++ b/examples/sdl2_audio/CMakeLists.txt @@ -3,8 +3,9 @@ project(adlmidi_vlc_plugin C) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) -find_package(SDL2 REQUIRED) +find_library(SDL2_LIBRARY SDL2 REQUIRED) include_directories(${SDL2_INCLUDE_DIR}) +message("Found ${SDL2_LIBRARY}") add_executable(adlmidi_sdl2_demo sdl2_sample.c) -- cgit v1.2.3