diff options
Diffstat (limited to 'vcpkg/ports/usd/007-fix_cmake_hgi_interop.patch')
| -rw-r--r-- | vcpkg/ports/usd/007-fix_cmake_hgi_interop.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/usd/007-fix_cmake_hgi_interop.patch b/vcpkg/ports/usd/007-fix_cmake_hgi_interop.patch new file mode 100644 index 0000000..058241d --- /dev/null +++ b/vcpkg/ports/usd/007-fix_cmake_hgi_interop.patch @@ -0,0 +1,23 @@ +diff --git a/pxr/imaging/hgiInterop/CMakeLists.txt b/pxr/imaging/hgiInterop/CMakeLists.txt +index 64ebfcb9e..0087d89aa 100644 +--- a/pxr/imaging/hgiInterop/CMakeLists.txt ++++ b/pxr/imaging/hgiInterop/CMakeLists.txt +@@ -15,6 +15,7 @@ set(optionalPrivateHeaders "") + list(APPEND optionalLibraries garch) + + if (PXR_ENABLE_GL_SUPPORT) ++ list(APPEND optionalLibraries hgiGL) + list(APPEND optionalCppFiles opengl.cpp) + list(APPEND optionalPrivateHeaders opengl.h) + endif() +@@ -32,6 +33,10 @@ if (PXR_ENABLE_METAL_SUPPORT) + list(APPEND optionalPrivateHeaders metal.h) + endif() + ++if (NOT (PXR_ENABLE_GL_SUPPORT OR PXR_ENABLE_VULKAN_SUPPORT OR PXR_ENABLE_METAL_SUPPORT)) ++ message(FATAL_ERROR "No valid GPU backend set for hgiInterop") ++endif() ++ + pxr_library(hgiInterop + LIBRARIES + gf |