From 29a43797fc27de218919da254b45dfd34a65426a Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 7 Sep 2022 13:54:48 +0100 Subject: [PATCH] tests: Fix compile with SDL2 This happens on certain old version of SDL2 where SDL2_LIBRARIES isn't a magical target thingy. --- tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f3167e73b..e2e44733f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -96,4 +96,5 @@ if(_have_opengl_test) target_link_libraries( tests_comp_client_opengl PRIVATE comp_client comp_mock aux_ogl ${SDL2_LIBRARIES} ) + target_include_directories(tests_comp_client_opengl PRIVATE ${SDL2_INCLUDE_DIRS}) endif()