From 177bb3c5696ae0ad9f070169e533b9fa026fd49a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Thu, 4 May 2023 18:27:06 +0200 Subject: [PATCH] build: fix USE_SYSTEM_SDL --- 3rdparty/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt index e036580ca8..6edcd672ae 100644 --- a/3rdparty/CMakeLists.txt +++ b/3rdparty/CMakeLists.txt @@ -345,6 +345,8 @@ if(USE_SDL) message(STATUS "Using system SDL2") add_library(3rdparty_sdl2 INTERFACE) target_compile_definitions(3rdparty_sdl2 INTERFACE -DHAVE_SDL2=1) + target_include_directories(3rdparty_sdl2 INTERFACE ${SDL2_INCLUDE_DIRS}) + target_link_libraries(3rdparty_sdl2 INTERFACE ${SDL2_LIBRARIES}) set(SDL2_TARGET 3rdparty_sdl2) else() message(FATAL_ERROR "SDL2 is not available on this system")