Skip to content

Commit d31c251

Browse files
committed
Fixed incorrect boost version variable usage
Signed-off-by: Nick Avramoussis <[email protected]>
1 parent c58cf40 commit d31c251

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openvdb/openvdb/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ endif()
114114

115115
find_package(Boost ${MINIMUM_BOOST_VERSION} REQUIRED COMPONENTS iostreams system)
116116
if(OPENVDB_FUTURE_DEPRECATION AND FUTURE_MINIMUM_BOOST_VERSION)
117-
if(${Boost_LIB_VERSION} VERSION_LESS FUTURE_MINIMUM_BOOST_VERSION)
117+
# The X.Y.Z boost version value isn't available until CMake 3.14
118+
set(FULL_BOOST_VERSION "${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}")
119+
if(${FULL_BOOST_VERSION} VERSION_LESS FUTURE_MINIMUM_BOOST_VERSION)
118120
message(DEPRECATION "Support for Boost versions < ${FUTURE_MINIMUM_BOOST_VERSION} "
119121
"is deprecated and will be removed.")
120122
endif()

0 commit comments

Comments
 (0)