From fb019885e49fc9bef61498bf6fbd283a9cec5a4a Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 3 Jan 2023 11:48:49 -0600 Subject: [PATCH] CMake: Silence bogus Boost warning Silence the following noisy warning: ``` CMake Warning at /usr/share/cmake/Modules/FindBoost.cmake:1384 (message): New Boost version may have incorrect or missing dependencies and imported targets Call Stack (most recent call first): /usr/share/cmake/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES) /usr/share/cmake/Modules/FindBoost.cmake:2118 (_Boost_MISSING_DEPENDENCIES) cmake/modules/FindDEAL_II_BOOST.cmake:57 (find_package) cmake/configure/configure_20_boost.cmake:36 (find_package) /scratch/users/testsuite/build-3O4p1Svw/CMakeFiles/CMakeTmp/evaluate_expression.tmp:1 (feature_BOOST_find_external) cmake/macros/macro_evaluate_expression.cmake:30 (include) cmake/macros/macro_configure_feature.cmake:239 (evaluate_expression) cmake/configure/configure_20_boost.cmake:170 (configure_feature) cmake/macros/macro_verbose_include.cmake:19 (include) CMakeLists.txt:130 (verbose_include) ``` --- cmake/modules/FindDEAL_II_BOOST.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/FindDEAL_II_BOOST.cmake b/cmake/modules/FindDEAL_II_BOOST.cmake index c9d79060c6..5248d971c1 100644 --- a/cmake/modules/FindDEAL_II_BOOST.cmake +++ b/cmake/modules/FindDEAL_II_BOOST.cmake @@ -53,6 +53,7 @@ endif() # and https://lists.boost.org/Archives/boost/2019/02/245016.php set(Boost_NO_BOOST_CMAKE ON) +set(Boost_NO_WARN_NEW_VERSIONS TRUE) if(DEAL_II_WITH_ZLIB) find_package(Boost ${BOOST_VERSION_REQUIRED} COMPONENTS iostreams serialization system thread -- 2.39.5