mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 05:29:15 +08:00
24 lines
807 B
Diff
24 lines
807 B
Diff
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
|