[Bf-blender-cvs] [a7db7f88b06] master: Fix CMake error in new builds after previous NanoVDB fix

Brecht Van Lommel noreply at git.blender.org
Fri Apr 29 15:38:25 CEST 2022


Commit: a7db7f88b067da2a6addd4243ab25506e81f4b77
Author: Brecht Van Lommel
Date:   Fri Apr 29 15:37:27 2022 +0200
Branches: master
https://developer.blender.org/rBa7db7f88b067da2a6addd4243ab25506e81f4b77

Fix CMake error in new builds after previous NanoVDB fix

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

M	build_files/cmake/platform/platform_old_libs_update.cmake

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

diff --git a/build_files/cmake/platform/platform_old_libs_update.cmake b/build_files/cmake/platform/platform_old_libs_update.cmake
index 5a635790307..f0ca930bb39 100644
--- a/build_files/cmake/platform/platform_old_libs_update.cmake
+++ b/build_files/cmake/platform/platform_old_libs_update.cmake
@@ -38,9 +38,9 @@ else()
 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")
+if(UNIX AND DEFINED NANOVDB_INCLUDE_DIR)
+  if(NOT EXISTS ${NANOVDB_INCLUDE_DIR} AND
+     EXISTS ${LIBDIR}/openvdb/include/nanovdb)
+    unset_cache_variables("^NANOVDB")
+  endif()
 endif()



More information about the Bf-blender-cvs mailing list