diff --git a/src/external/CMakeLists.txt b/src/external/CMakeLists.txt index e10118b9b..50bd49fdb 100644 --- a/src/external/CMakeLists.txt +++ b/src/external/CMakeLists.txt @@ -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 ) diff --git a/src/xrt/targets/gui/CMakeLists.txt b/src/xrt/targets/gui/CMakeLists.txt index 2aac66147..1cf3f5dd3 100644 --- a/src/xrt/targets/gui/CMakeLists.txt +++ b/src/xrt/targets/gui/CMakeLists.txt @@ -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()