cmake: Build fix re SDL on some systems

This commit is contained in:
Ryan Pavlik 2021-11-17 10:05:04 -06:00
parent 14cc4f1ba2
commit 0a9b098a37
2 changed files with 3 additions and 2 deletions

View file

@ -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
)

View file

@ -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()