Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-04-29 15:36:48 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-04-29 16:12:46 +0300
commita111a0f1e149dfbcf06b1dfd15d9764508d83028 (patch)
tree9391495eee859f185977d1909a301246f47893c4 /build_files/cmake/platform/platform_old_libs_update.cmake
parenta1b21a3503833d9cb48558b934d2b126b41cfe08 (diff)
Fix missing NanoVDB patch for HIP support, after unifying with OpenVDB
This patch has also been contributed upstream, so will not be needed anymore soon. Also automatically clear cached variables for new nanovdb location in libs.
Diffstat (limited to 'build_files/cmake/platform/platform_old_libs_update.cmake')
-rw-r--r--build_files/cmake/platform/platform_old_libs_update.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/build_files/cmake/platform/platform_old_libs_update.cmake b/build_files/cmake/platform/platform_old_libs_update.cmake
index 38c548e73a9..5a635790307 100644
--- a/build_files/cmake/platform/platform_old_libs_update.cmake
+++ b/build_files/cmake/platform/platform_old_libs_update.cmake
@@ -36,3 +36,11 @@ if(EXISTS ${LIBDIR}/webp)
else()
set(WITH_IMAGE_WEBP OFF)
endif()
+
+# NanoVDB moved into openvdb.
+if(UNIX AND
+ DEFINED NANOVDB_INCLUDE_DIR AND
+ NOT EXISTS ${NANOVDB_INCLUDE_DIR} AND
+ EXISTS ${LIBDIR}/openvdb/include/nanovdb)
+ unset_cache_variables("^NANOVDB")
+endif()