diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-04-29 00:46:45 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-04-29 00:49:56 +0300 |
commit | 4b96517e202e208697bae23295db22981627a52c (patch) | |
tree | b5d37832f3bc511d3330e2e06b72dc25711ff901 /build_files/build_environment/cmake/usd.cmake | |
parent | f38f12cbbc406fedb771e839783ce11bc402e732 (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.cmake | 2 |
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 |