mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +00:00
aux/vk: Add additional include dirs conditionally.
This commit is contained in:
parent
3689eca3ce
commit
0496ba9c5c
4
doc/changes/misc_fixes/mr.1396.md
Normal file
4
doc/changes/misc_fixes/mr.1396.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- issue.175
|
||||
---
|
||||
Fix build issue with Wayland on some distributions.
|
|
@ -1,7 +1,6 @@
|
|||
# Copyright 2019-2022, Collabora, Ltd.
|
||||
# SPDX-License-Identifier: BSL-1.0
|
||||
|
||||
|
||||
add_library(
|
||||
aux_vk STATIC
|
||||
vk_bundle_init.c
|
||||
|
@ -28,3 +27,13 @@ if(ANDROID)
|
|||
target_link_libraries(aux_vk PUBLIC aux_android)
|
||||
target_link_libraries(aux_vk PUBLIC ${ANDROID_LIBRARY})
|
||||
endif()
|
||||
|
||||
if(XRT_HAVE_WAYLAND)
|
||||
target_include_directories(aux_vk PRIVATE ${WAYLAND_INCLUDE_DIR})
|
||||
endif()
|
||||
if(XRT_HAVE_XCB)
|
||||
target_include_directories(aux_vk PRIVATE ${XCB_INCLUDE_DIR})
|
||||
endif()
|
||||
if(XRT_HAVE_XRANDR)
|
||||
target_include_directories(aux_vk PRIVATE ${XRANDR_INCLUDE_DIR} ${X11_INCLUDE_DIR})
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue