diff --git a/src/xrt/include/xrt/xrt_openxr_includes.h b/src/xrt/include/xrt/xrt_openxr_includes.h index cb304e8bf..5616cf639 100644 --- a/src/xrt/include/xrt/xrt_openxr_includes.h +++ b/src/xrt/include/xrt/xrt_openxr_includes.h @@ -1,4 +1,4 @@ -// Copyright 2018-2019, Collabora, Ltd. +// Copyright 2018-2022, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file @@ -9,15 +9,9 @@ #pragma once -#include - //! @todo Move these to the build system instead. #define XR_USE_TIMESPEC 1 -#ifdef XRT_HAVE_VULKAN -#define XR_USE_GRAPHICS_API_VULKAN -#endif - #ifdef XR_USE_PLATFORM_ANDROID #include #endif diff --git a/src/xrt/state_trackers/oxr/CMakeLists.txt b/src/xrt/state_trackers/oxr/CMakeLists.txt index d5c6cfc90..4a67aa1dc 100644 --- a/src/xrt/state_trackers/oxr/CMakeLists.txt +++ b/src/xrt/state_trackers/oxr/CMakeLists.txt @@ -42,6 +42,7 @@ add_library( ) if(XRT_HAVE_VULKAN) + target_compile_definitions(st_oxr PRIVATE XR_USE_GRAPHICS_API_VULKAN) target_sources(st_oxr PRIVATE oxr_session_gfx_vk.c oxr_swapchain_vk.c oxr_vulkan.c) target_link_libraries(st_oxr PUBLIC Vulkan::Vulkan) endif()