From aabfa931738b80aac02617a2046034f62909f378 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Thu, 4 Jul 2024 11:01:04 +0200 Subject: [PATCH] CMake: Find Boost using CONFIG mode --- cmake_modules/PagmoFindBoost.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)