From 5d8c4b0d9cea4a82a41b19ab6eabcd5d9e7a0589 Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller Date: Mon, 28 Oct 2024 12:00:33 +0100 Subject: [PATCH] Enable deprecation warnings in user plugins --- cmake/AspectConfig.cmake.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/AspectConfig.cmake.in b/cmake/AspectConfig.cmake.in index 956148d010b..c81fc10c9ab 100644 --- a/cmake/AspectConfig.cmake.in +++ b/cmake/AspectConfig.cmake.in @@ -37,6 +37,10 @@ macro(ASPECT_SETUP_PLUGIN _target) message(STATUS " name <${_target}>") message(STATUS " using ASPECT_DIR ${Aspect_DIR}") + # deal.II versions >=9.5 disable deprecation warnings in user code. Enable + # the warnings again by removing the flag that disables them. + string(REPLACE "-Wno-deprecated-declarations" "" DEAL_II_WARNING_FLAGS "${DEAL_II_WARNING_FLAGS}") + # We create lib${_target}.debug.so, lib${_target}.release.so, or both # depending on the compilation mode of ASPECT. Note that the user already # created the target under the name ${_target}, so we only need to create