The open source OpenXR runtime

t/[gui|oxr]: Directly reference SDL2 in CMake

This fixes the build when building with clang and CMake.

+14 -2
+5 -1
src/xrt/targets/gui/CMakeLists.txt
··· 27 27 st_gui 28 28 target_instance_no_comp 29 29 imgui_impl_sdl 30 + ${SDL2_LIBRARIES} 30 31 ) 31 - target_include_directories(gui PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..) 32 + target_include_directories(gui PRIVATE 33 + ${CMAKE_CURRENT_SOURCE_DIR}/.. 34 + ${SDL2_INCLUDE_DIRS} 35 + ) 32 36 33 37 install(TARGETS gui 34 38 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+9 -1
src/xrt/targets/openxr/CMakeLists.txt
··· 35 35 if(XRT_HAVE_OPENGL) 36 36 target_link_libraries(${RUNTIME_TARGET} PUBLIC aux_ogl) 37 37 endif() 38 + 38 39 if(XRT_HAVE_SDL2) 39 - target_link_libraries(${RUNTIME_TARGET} PUBLIC st_gui imgui_impl_sdl) 40 + target_link_libraries(${RUNTIME_TARGET} PRIVATE 41 + st_gui 42 + imgui_impl_sdl 43 + ${SDL2_LIBRARIES} 44 + ) 45 + target_include_directories(${RUNTIME_TARGET} PRIVATE 46 + ${SDL2_INCLUDE_DIRS} 47 + ) 40 48 endif() 41 49 42 50 if(XRT_FEATURE_SERVICE)