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

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