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 16:37:27 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-04-29 16:38:21 +0300
commita7db7f88b067da2a6addd4243ab25506e81f4b77 (patch)
tree4024786c11d03a0217c3df1d0da30c1c4bf3fb8b /build_files
parent1d9c050188ad9e0b4157e3770d78101019dbe07f (diff)
Fix CMake error in new builds after previous NanoVDB fix
Diffstat (limited to 'build_files')
-rw-r--r--build_files/cmake/platform/platform_old_libs_update.cmake10
1 files changed, 5 insertions, 5 deletions
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()