mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
24 lines
836 B
Diff
24 lines
836 B
Diff
diff --git a/pxr/imaging/hgiInterop/CMakeLists.txt b/pxr/imaging/hgiInterop/CMakeLists.txt
|
|
index 6264cce71e..ebea6f1e59 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()
|
|
@@ -37,6 +38,10 @@ if (PXR_ENABLE_METAL_SUPPORT AND NOT PXR_APPLE_EMBEDDED)
|
|
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
|