cmake - make USD_SUPPORT build succeed

This commit is contained in:
Andrej730
2025-12-05 20:16:33 +05:00
parent 2213c3773d
commit d174ecf760
3 changed files with 54 additions and 6 deletions
+2 -2
View File
@@ -222,8 +222,10 @@ if(GLTF_SUPPORT)
endif()
# Add USD support to serializers
set(USD_LIBRARIES "")
if(USD_SUPPORT)
find_package(USD REQUIRED)
set(USD_LIBRARIES USD::USD)
endif(USD_SUPPORT)
if (WITH_ROCKSDB)
@@ -432,8 +434,6 @@ endif(MSVC)
include_directories(${OPENCOLLADA_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS} ${HDF5_INCLUDE_DIR}
${USD_INCLUDE_DIR}
${TBB_INCLUDE_DIR}
)
if(NOT SCHEMA_VERSIONS)