Skip to content

Use builtin FindBoost module and disable version warning

Frank Winklmeier requested to merge fwinkl/atlasexternals:findboost into main

CMake 3.30 deprecates the built-in FindBoost module in favor of the upstream one. As we are not ready to make that transition, set the corresponding CMP0167 policy to OLD to keep using the built-in FindBoost module.I experimented with various locations where to set this policy. The cmake warnings only seem to disappear consistently if one sets the policy directly in LCGFunctions.cmake where ultimately the find_package( Boost ) call is invoked.

In addition, set the Boost_NO_WARN_NEW_VERSIONS variable to suppress the boost version warning because even the current master branch of cmake does not "support" Boost >= 1.86.

Tested by building a "few" athena packages (but not a full build) against AthenaExternals.

Also update default cmake version for CI to 3.30.5.

Relates to ATLINFR-5563.

cc @elmsheus

Edited by Frank Winklmeier

Merge request reports

Loading