Skip to content

Commit

Permalink
Disable deprecated FindBoost module
Browse files Browse the repository at this point in the history
Disable deprecated FindBoost module, as CMake will emit a warning [1]
starting with 3.30 if the FindBoost module is used. As our minimum
required Boost version already provides the necessary CMake
configuration files, we simply enforce to always use these files instead
of the FindBoost module.

[1] https://cmake.org/cmake/help/latest/policy/CMP0167.html
  • Loading branch information
Sven Püschel authored and jwiegley committed Oct 19, 2024
1 parent 6030c6a commit b7d079c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ endif()
# Set BOOST_ROOT to help CMake to find the right Boost version
find_package(Boost ${Required_Boost_Version}
REQUIRED date_time filesystem system iostreams regex unit_test_framework
${BOOST_PYTHON} OPTIONAL_COMPONENTS nowide)
${BOOST_PYTHON} OPTIONAL_COMPONENTS nowide
CONFIG)

# enable Boost::nowide library (for UTF8 command line args on Windows)
set(HAVE_BOOST_NOWIDE 0)
Expand Down

0 comments on commit b7d079c

Please sign in to comment.