diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-04-29 15:36:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-04-29 16:12:46 +0300 |
commit | a111a0f1e149dfbcf06b1dfd15d9764508d83028 (patch) | |
tree | 9391495eee859f185977d1909a301246f47893c4 /build_files/cmake | |
parent | a1b21a3503833d9cb48558b934d2b126b41cfe08 (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')
-rw-r--r-- | build_files/cmake/platform/platform_old_libs_update.cmake | 8 |
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() |