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

This only affects macOS.

Ref D14792
This commit is contained in:
Brecht Van Lommel 2022-04-28 23:46:45 +02:00
parent f38f12cbbc
commit 4b96517e20
1 changed files with 2 additions and 0 deletions

View File

@ -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