mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-08 03:18:36 +00:00
Another attempt to fix linux SDL2 include paths
This commit is contained in:
@@ -60,7 +60,8 @@ if (WIN32)
|
||||
elseif (APPLE)
|
||||
target_include_directories(Contrib PRIVATE ${SDL2_INCLUDE_DIR} ${SDL2_INCLUDE_DIR_PARENT})
|
||||
else()
|
||||
target_include_directories(Contrib PRIVATE ${SDL2_INCLUDE_DIRS})
|
||||
# Use the include directories from the imported target on Linux
|
||||
target_link_libraries(Contrib PRIVATE SDL2::SDL2)
|
||||
endif()
|
||||
|
||||
include_directories(SYSTEM ${OPENGL_INCLUDE_DIR})
|
||||
@@ -79,9 +80,8 @@ if (WIN32)
|
||||
include_directories(Contrib/SDL/include)
|
||||
elseif (APPLE)
|
||||
include_directories(${SDL2_INCLUDE_DIR} ${SDL2_INCLUDE_DIR_PARENT})
|
||||
else()
|
||||
include_directories(${SDL2_INCLUDE_DIRS})
|
||||
endif()
|
||||
# On Linux, SDL2 includes are handled via target_link_libraries with SDL2::SDL2
|
||||
|
||||
if (WIN32)
|
||||
add_executable(RecastDemo WIN32 ${SOURCES})
|
||||
@@ -143,6 +143,7 @@ else()
|
||||
target_link_libraries(
|
||||
RecastDemo
|
||||
${OPENGL_LIBRARIES}
|
||||
SDL2::SDL2
|
||||
SDL2::SDL2main
|
||||
DebugUtils
|
||||
Detour
|
||||
|
||||
Reference in New Issue
Block a user