@@ -110,16 +110,14 @@ endif()
110110
111111if (OPENVDB_USE_DELAYED_LOADING)
112112 find_package (Boost ${MINIMUM_BOOST_VERSION} REQUIRED COMPONENTS iostreams)
113- else ()
114- find_package (Boost ${MINIMUM_BOOST_VERSION} REQUIRED COMPONENTS headers)
115- endif ()
116113
117- if (OPENVDB_FUTURE_DEPRECATION AND FUTURE_MINIMUM_BOOST_VERSION)
118- # The X.Y.Z boost version value isn't available until CMake 3.14
119- set (FULL_BOOST_VERSION "${Boost_MAJOR_VERSION} .${Boost_MINOR_VERSION} .${Boost_SUBMINOR_VERSION} " )
120- if (${FULL_BOOST_VERSION} VERSION_LESS FUTURE_MINIMUM_BOOST_VERSION)
121- message (DEPRECATION "Support for Boost versions < ${FUTURE_MINIMUM_BOOST_VERSION} "
122- "is deprecated and will be removed." )
114+ if (OPENVDB_FUTURE_DEPRECATION AND FUTURE_MINIMUM_BOOST_VERSION)
115+ # The X.Y.Z boost version value isn't available until CMake 3.14
116+ set (FULL_BOOST_VERSION "${Boost_MAJOR_VERSION} .${Boost_MINOR_VERSION} .${Boost_SUBMINOR_VERSION} " )
117+ if (${FULL_BOOST_VERSION} VERSION_LESS FUTURE_MINIMUM_BOOST_VERSION)
118+ message (DEPRECATION "Support for Boost versions < ${FUTURE_MINIMUM_BOOST_VERSION} "
119+ "is deprecated and will be removed." )
120+ endif ()
123121 endif ()
124122endif ()
125123
@@ -246,20 +244,17 @@ endif()
246244
247245if (OPENVDB_USE_DELAYED_LOADING)
248246 list (APPEND OPENVDB_CORE_DEPENDENT_LIBS Boost::iostreams)
249- else ()
250- list (APPEND OPENVDB_CORE_DEPENDENT_LIBS Boost::headers)
251- endif ()
252-
253- if (WIN32 )
254- # Boost headers contain #pragma commands on Windows which causes Boost
255- # libraries to be linked in automatically. Custom boost installations
256- # may find that these naming conventions don't always match and can
257- # cause linker errors. This option disables this feature of Boost. Note
258- # -DBOOST_ALL_NO_LIB can also be provided manually.
259- if (OPENVDB_DISABLE_BOOST_IMPLICIT_LINKING)
260- list (APPEND OPENVDB_CORE_DEPENDENT_LIBS
261- Boost::disable_autolinking # add -DBOOST_ALL_NO_LIB
262- )
247+ if (WIN32 )
248+ # Boost headers contain #pragma commands on Windows which causes Boost
249+ # libraries to be linked in automatically. Custom boost installations
250+ # may find that these naming conventions don't always match and can
251+ # cause linker errors. This option disables this feature of Boost. Note
252+ # -DBOOST_ALL_NO_LIB can also be provided manually.
253+ if (OPENVDB_DISABLE_BOOST_IMPLICIT_LINKING)
254+ list (APPEND OPENVDB_CORE_DEPENDENT_LIBS
255+ Boost::disable_autolinking # add -DBOOST_ALL_NO_LIB
256+ )
257+ endif ()
263258 endif ()
264259endif ()
265260
0 commit comments