diff --git a/cmake_modules/PagmoFindBoost.cmake b/cmake_modules/PagmoFindBoost.cmake index 1839ee8d7..53459acc5 100644 --- a/cmake_modules/PagmoFindBoost.cmake +++ b/cmake_modules/PagmoFindBoost.cmake @@ -1,7 +1,7 @@ # Run a first pass for finding the headers only, # and establishing the Boost version. set(_PAGMO_BOOST_MINIMUM_VERSION 1.68.0) -find_package(Boost ${_PAGMO_BOOST_MINIMUM_VERSION} QUIET REQUIRED) +find_package(Boost ${_PAGMO_BOOST_MINIMUM_VERSION} QUIET REQUIRED CONFIG) set(_PAGMO_REQUIRED_BOOST_LIBS serialization)