t/oxr: Fix linking in absence of SDL2

This commit is contained in:
Ryan Pavlik 2019-12-03 14:11:11 -06:00 committed by Jakob Bornecrantz
parent 286e11921c
commit 5c830f16b2

View file

@ -72,7 +72,6 @@ if(BUILD_WITH_SDL2)
target_link_libraries(${RUNTIME_TARGET} PUBLIC
${SDL2_LIBRARIES}
X11 # HACK HACK HACK HACK
)
target_sources(${RUNTIME_TARGET} PRIVATE
@ -81,6 +80,11 @@ if(BUILD_WITH_SDL2)
../../../external/imgui/imgui_impl_sdl.h
)
endif()
if(BUILD_WITH_XCB AND BUILD_WITH_XLIB)
target_link_libraries(${RUNTIME_TARGET} PUBLIC
${X11_X11_LIB}
)
endif()
include(GNUInstallDirs)