diff options
Diffstat (limited to 'build_files/cmake/platform/platform_old_libs_update.cmake')
-rw-r--r-- | build_files/cmake/platform/platform_old_libs_update.cmake | 10 |
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() |