mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
t/oxr: Fix linking in absence of SDL2
This commit is contained in:
parent
286e11921c
commit
5c830f16b2
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue