From f8cdc5ac4c0c508deb28a0fc4b432f6e982c4b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Sat, 14 Dec 2019 12:41:07 +0100 Subject: 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`. --- build_files/cmake/platform/platform_apple.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build_files') diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake index d99d7ec3c0c..a5f79c58ab1 100644 --- a/build_files/cmake/platform/platform_apple.cmake +++ b/build_files/cmake/platform/platform_apple.cmake @@ -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) -- cgit v1.2.3