mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
cmake: Build fix re SDL on some systems
This commit is contained in:
parent
14cc4f1ba2
commit
0a9b098a37
4
src/external/CMakeLists.txt
vendored
4
src/external/CMakeLists.txt
vendored
|
@ -109,10 +109,10 @@ if(XRT_HAVE_OPENGL)
|
|||
target_link_libraries(
|
||||
xrt-external-imgui-sdl2
|
||||
PUBLIC xrt-external-imgui
|
||||
PRIVATE ${SDL2_LIBRARIES}
|
||||
PUBLIC ${SDL2_LIBRARIES}
|
||||
)
|
||||
|
||||
target_include_directories(xrt-external-imgui-sdl2 PRIVATE ${SDL2_INCLUDE_DIRS})
|
||||
target_include_directories(xrt-external-imgui-sdl2 PUBLIC ${SDL2_INCLUDE_DIRS})
|
||||
target_include_directories(
|
||||
xrt-external-imgui-sdl2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/imgui
|
||||
)
|
||||
|
|
|
@ -20,6 +20,7 @@ target_link_libraries(
|
|||
target_instance_no_comp
|
||||
xrt-external-imgui-sdl2
|
||||
)
|
||||
target_include_directories(gui PUBLIC ${SDL2_INCLUDE_DIRS})
|
||||
if(WIN32)
|
||||
target_link_libraries(gui PRIVATE SDL2::SDL2main)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue