]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: do not export -Wno-deprecated-declarations 18617/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 3 Jul 2025 06:48:08 +0000 (01:48 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 6 Jul 2025 23:04:09 +0000 (18:04 -0500)
cmake/config/CMakeLists.txt

index 1afa5c7014cd4d562c59643784ddc4245d834458..6be505a489cd6c26721dbc0e2314a76652ce2781 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.