From e9aeebb3a10409f794500d9efd7d970a38f01a2b Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Fri, 16 Apr 2021 18:41:44 -0700 Subject: [PATCH] Use cmake SDL2 target properties Some distros include generated cmake files instead of the two cmake files from the source. Distros that use the generated cmake files only have SDL import properties, so we are required to use those. --- Source/Tools/FEXConfig/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Tools/FEXConfig/CMakeLists.txt b/Source/Tools/FEXConfig/CMakeLists.txt index 030a83a96..b0284a3e9 100644 --- a/Source/Tools/FEXConfig/CMakeLists.txt +++ b/Source/Tools/FEXConfig/CMakeLists.txt @@ -11,14 +11,13 @@ add_definitions(-DIMGUI_IMPL_OPENGL_LOADER_CUSTOM=) add_executable(${NAME} ${SRCS}) target_include_directories(${NAME} PRIVATE ${LLVM_INCLUDE_DIRS}) -target_include_directories(${NAME} PRIVATE ${SDL2_INCLUDE_DIRS}) target_include_directories(${NAME} PRIVATE ${CMAKE_SOURCE_DIR}/Source/) target_include_directories(${NAME} PRIVATE ${CMAKE_SOURCE_DIR}/Source/Tools/Debugger/) target_include_directories(${NAME} PRIVATE ${CMAKE_SOURCE_DIR}/External/imgui/examples/) -target_link_libraries(${NAME} PRIVATE FEXCore Common CommonCore pthread epoxy ${SDL2_LIBRARIES} X11 EGL imgui tiny-json json-maker) +target_link_libraries(${NAME} PRIVATE FEXCore Common CommonCore pthread epoxy SDL2::SDL2 X11 EGL imgui tiny-json json-maker) install(TARGETS ${NAME} RUNTIME