File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,8 @@ if (WEBGPU_SUPPORTED)
171171 set_directory_root_folder("dawn" "DiligentCore/ThirdParty/dawn" )
172172endif ()
173173
174- if (DILIGENT_USE_OPENXR)
175- add_subdirectory (OpenXR-SDK EXCLUDE_FROM_ALL )
174+ if (DILIGENT_USE_OPENXR AND NOT ( TARGET openxr_loader) )
175+ add_subdirectory (OpenXR-SDK EXCLUDE_FROM_ALL )
176176endif ()
177177
178178if ((${DILIGENT_BUILD_GOOGLE_TEST} ) AND (NOT TARGET gtest))
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ FetchContent_Declare(
1111 URL https://github.com/KhronosGroup/OpenXR-SDK-Source /archive/refs/tags/release-1.0.34.zip
1212)
1313FetchContent_MakeAvailable(OpenXR)
14+ set_directory_root_folder("${openxr_SOURCE_DIR} " "DiligentCore/ThirdParty/OpenXR" )
You can’t perform that action at this time.
0 commit comments