aux/vk: Add additional include dirs conditionally.

This commit is contained in:
Ryan Pavlik 2022-06-28 09:43:12 -05:00 committed by Jakob Bornecrantz
parent 3689eca3ce
commit 0496ba9c5c
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,4 @@
---
- issue.175
---
Fix build issue with Wayland on some distributions.

View file

@ -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()