From 2c1cd20df869fc23ff10d2566cee21ac6e17c2af Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Thu, 3 Aug 2017 01:52:46 -0600 Subject: [PATCH] Make sure to add SDL's library directory before building SDL things. --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fcd158b..d9ffbf8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -63,6 +63,7 @@ endif(DEMO_BUILD) pkg_search_module(SDL2 REQUIRED sdl2) include_directories(${SDL2_INCLUDE_DIRS}) +link_directories(${SDL2_LIBDIR}) pkg_search_module(SDL2IMAGE REQUIRED SDL2_image>=2.0.0) include_directories(${SDL2IMAGE_INCLUDE_DIRS})