[Bf-blender-cvs] [06525747c02] geometry-nodes-simulation: Build: resolve failure to copy indirect dependencies for USD on Linux

Campbell Barton noreply at git.blender.org
Mon Dec 19 19:05:24 CET 2022


Commit: 06525747c0248f1b02ba4520d5b60a6ed0f05a46
Author: Campbell Barton
Date:   Fri Dec 16 23:28:28 2022 +1100
Branches: geometry-nodes-simulation
https://developer.blender.org/rB06525747c0248f1b02ba4520d5b60a6ed0f05a46

Build: resolve failure to copy indirect dependencies for USD on Linux

Even when building without OpenImageIO and OpenVDB, USD depends on these
libraries.

Ensure these libraries are copied when building with USD.

===================================================================

M	build_files/cmake/platform/platform_unix.cmake

===================================================================

diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake
index cfb3ecc564b..2b68fa60f15 100644
--- a/build_files/cmake/platform/platform_unix.cmake
+++ b/build_files/cmake/platform/platform_unix.cmake
@@ -1013,6 +1013,18 @@ endfunction()
 
 configure_atomic_lib_if_needed()
 
+# Handle library inter-dependencies.
+# FIXME: find a better place to handle inter-library dependencies.
+# This is done near the end of the file to ensure bundled libraries are not added multiple times.
+if(WITH_USD)
+  if(NOT WITH_OPENIMAGEIO)
+    add_bundled_libraries(openimageio/lib)
+  endif()
+  if(NOT WITH_OPENVDB)
+    add_bundled_libraries(openvdb/lib)
+  endif()
+endif()
+
 if(PLATFORM_BUNDLED_LIBRARIES)
   # For the installed Python module and installed Blender executable, we set the
   # rpath to the relative path where the install step will copy the shared libraries.



More information about the Bf-blender-cvs mailing list