From 9d32e8cb35b7ac8ee4e5e76c23321eeda2a53f90 Mon Sep 17 00:00:00 2001 From: juliancoffee Date: Tue, 6 Apr 2021 12:58:02 +0300 Subject: [PATCH] Workaround to compile on archlinux --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d81c2ef..afb43cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,6 +101,7 @@ include_directories(imgui/examples) include_directories(imgui/examples/libs/gl3w) include_directories(${SDL2_INCLUDE_DIRS}) include_directories(${OPENGL_INCLUDE_DIR}) +include_directories(/usr/include/SDL2) add_library(Core STATIC common.cpp @@ -112,7 +113,7 @@ target_include_directories(Core PRIVATE target_link_libraries(Core PRIVATE ${CMAKE_THREAD_LIBS_INIT} - ${SDL2_LIBRARIES} + SDL2::SDL2 ${COREFOUNDATION_LIBRARY} ) -- 2.31.1