Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: Silence bogus Boost warning #14635

Merged
merged 1 commit into from Jan 4, 2023

Conversation

tamiko
Copy link
Member

@tamiko tamiko commented Jan 3, 2023

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)

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)
```
@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TRUE, ON, or YES? :-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also CamelCase everything I guess :-)

@masterleinad masterleinad merged commit 84cb874 into dealii:master Jan 4, 2023
@masterleinad masterleinad deleted the silence_warning branch January 4, 2023 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants