[Bf-blender-cvs] [4b96517e202] master: Build: disable Metal for USD libraries also, it fails to build without OpenGL

Brecht Van Lommel noreply at git.blender.org
Fri Apr 29 00:00:27 CEST 2022


Commit: 4b96517e202e208697bae23295db22981627a52c
Author: Brecht Van Lommel
Date:   Thu Apr 28 23:46:45 2022 +0200
Branches: master
https://developer.blender.org/rB4b96517e202e208697bae23295db22981627a52c

Build: disable Metal for USD libraries also, it fails to build without OpenGL

This only affects macOS.

Ref D14792

===================================================================

M	build_files/build_environment/cmake/usd.cmake

===================================================================

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



More information about the Bf-blender-cvs mailing list