You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: Adjust OpenVDB version requirements vs C++17 (#4030)
Revision of PR #4023
I have since determined that although OpenVDB raised their own build
requirements to C++17 starting with 10.0, it wasn't until 10.1 that
C++17-isms crept into their header files and force downstream projects
to need C++17 to consume OpenVDB's headers. So we can go back to
allowing use of OpenVDB 10.0 even when we are building with C++14.
Signed-off-by: Larry Gritz <[email protected]>
Copy file name to clipboardExpand all lines: src/cmake/externalpackages.cmake
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -235,8 +235,8 @@ checked_find_package (OpenVDB
235
235
VERSION_MIN5.0
236
236
DEPSTBB
237
237
DEFINITIONS-DUSE_OPENVDB=1)
238
-
if (OpenVDB_FOUNDANDOpenVDB_VERSIONVERSION_GREATER_EQUAL10.0ANDCMAKE_CXX_STANDARDVERSION_LESS17)
239
-
message (WARNING"${ColorYellow}OpenVDB >= 10.0 (we found ${OpenVDB_VERSION}) can only be used when we build with C++17 or higher. Disabling OpenVDB support.${ColorReset}")
238
+
if (OpenVDB_FOUNDANDOpenVDB_VERSIONVERSION_GREATER_EQUAL10.1ANDCMAKE_CXX_STANDARDVERSION_LESS17)
239
+
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}")
0 commit comments