From: Matthias Maier Date: Thu, 3 Jul 2025 06:48:08 +0000 (-0500) Subject: CMake: do not export -Wno-deprecated-declarations X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7334f93875af8bb7900ac86d03341d7ecd67ded1;p=dealii.git CMake: do not export -Wno-deprecated-declarations --- diff --git a/cmake/config/CMakeLists.txt b/cmake/config/CMakeLists.txt index 1afa5c7014..6be505a489 100644 --- a/cmake/config/CMakeLists.txt +++ b/cmake/config/CMakeLists.txt @@ -174,6 +174,12 @@ endforeach() set(CONFIG_BUILD_DIR TRUE) +# +# Filter out -Wno-deprecated-decarations so that user projects actually see +# deprecation warnings: +# +string(REPLACE "-Wno-deprecated-declarations" "" DEAL_II_WARNING_FLAGS "${DEAL_II_WARNING_FLAGS}") + configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in ${CMAKE_BINARY_DIR}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}Config.cmake