Fix CMake error in new builds after previous NanoVDB fix

This commit is contained in:
Brecht Van Lommel 2022-04-29 15:37:27 +02:00
parent 1d9c050188
commit a7db7f88b0
Notes: blender-bot 2023-02-14 10:54:29 +01:00
Referenced by issue #97720, COSMETIC meta strip displays incorrect muted channel graphic when parent channel is muted
1 changed files with 5 additions and 5 deletions

View File

@ -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()