Skip to content

Commit f434dd3

Browse files
committed
build: typo in OpenVDB version check
Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent a185e6e commit f434dd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmake/externalpackages.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ checked_find_package (OpenVDB
243243
DEFINITIONS -DUSE_OPENVDB=1)
244244
if (OpenVDB_FOUND AND OpenVDB_VERSION VERSION_GREATER_EQUAL 10.1 AND CMAKE_CXX_STANDARD VERSION_LESS 17)
245245
message (WARNING "${ColorYellow}OpenVDB >= 10.1 (we found ${OpenVDB_VERSION}) can only be used when we build with C++17 or higher. Disabling OpenVDB support.${ColorReset}")
246-
set (OpeVDB_FOUND 0)
246+
set (OpenVDB_FOUND 0)
247+
add_compile_definitions(DISABLE_OPENVDB=1)
247248
endif ()
248249

249250
checked_find_package (Ptex PREFER_CONFIG)

0 commit comments

Comments
 (0)