USD: on Apple disable USD if library cannot be found

When building with `WITH_USD=ON` on Apple but the USD library cannot be
found, the CMake script now just sets `WITH_USD=OFF`.
This commit is contained in:
Sybren A. Stüvel 2019-12-14 12:41:07 +01:00
parent 9b871683b1
commit f8cdc5ac4c
1 changed files with 4 additions and 2 deletions

View File

@ -57,8 +57,10 @@ if(WITH_ALEMBIC)
endif()
if(WITH_USD)
set(USD_LIBRARIES ${LIBDIR}/usd/lib/libusd_m.a)
SET(USD_INCLUDE_DIRS ${LIBDIR}/usd/include)
find_package(USD)
if(NOT USD_FOUND)
set(WITH_USD OFF)
endif()
endif()
if(WITH_OPENSUBDIV)