Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-04-29 00:46:45 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-04-29 00:49:56 +0300
commit4b96517e202e208697bae23295db22981627a52c (patch)
treeb5d37832f3bc511d3330e2e06b72dc25711ff901 /build_files/build_environment/cmake/usd.cmake
parentf38f12cbbc406fedb771e839783ce11bc402e732 (diff)
Build: disable Metal for USD libraries also, it fails to build without OpenGL
This only affects macOS. Ref D14792
Diffstat (limited to 'build_files/build_environment/cmake/usd.cmake')
-rw-r--r--build_files/build_environment/cmake/usd.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/build_files/build_environment/cmake/usd.cmake b/build_files/build_environment/cmake/usd.cmake
index 8bf825a1c5f..34e43383637 100644
--- a/build_files/build_environment/cmake/usd.cmake
+++ b/build_files/build_environment/cmake/usd.cmake
@@ -46,6 +46,8 @@ set(USD_EXTRA_ARGS
# worked on, we could patch in a new PXR_ENABLE_X11_SUPPORT option (to
# separate OpenGL from X11) and contribute it upstream.
-DPXR_ENABLE_GL_SUPPORT=OFF
+ # Disable Metal since USD fails to build this when OpenGL is disabled.
+ -DPXR_ENABLE_METAL_SUPPORT=OFF
# OIIO is used for loading image textures in Hydra Storm / Embree renderers,
# which we don't use.
-DPXR_BUILD_OPENIMAGEIO_PLUGIN=OFF