]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Switch to DEAL_II_DEPRECATED_EARLY
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 5 Jan 2021 16:56:41 +0000 (11:56 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 6 Jan 2021 16:14:02 +0000 (11:14 -0500)
cmake/checks/check_01_cxx_features.cmake
cmake/setup_cached_variables.cmake
include/deal.II/base/config.h.in

index b75dd1ebae4b55c6306f6c6dfb7e0e63f460f0db..53a43942b1fce5334854a9c79701c5b6bc219e39 100644 (file)
@@ -494,6 +494,11 @@ ELSEIF(DEAL_II_HAVE_ATTRIBUTE_DEPRECATED AND NOT DEAL_II_WITH_CUDA)
 ELSE()
   SET(DEAL_II_DEPRECATED " ")
 ENDIF()
+IF(DEAL_II_EARLY_DEPRECATIONS)
+  SET(DEAL_II_DEPRECATED_EARLY ${DEAL_II_DEPRECATED})
+ELSE()
+  SET(DEAL_II_DEPRECATED_EARLY " ")
+ENDIF()
 
 
 #
index 3c31c6b11ef828ecaeb058a24a62d74485a8d1ea..dd3f710600839bbe6d36dc6ba586a5a2d76cc7d9 100644 (file)
@@ -165,6 +165,11 @@ OPTION(DEAL_II_UNITY_BUILD
   OFF)
 MARK_AS_ADVANCED(DEAL_II_UNITY_BUILD)
 
+OPTION(DEAL_II_EARLY_DEPRECATIONS
+  "Enable deprecation warnings for features deprecated since the last release."
+  ON)
+MARK_AS_ADVANCED(DEAL_II_EARLY_DEPRECATIONS)
+
 SET(BUILD_SHARED_LIBS "ON" CACHE BOOL
   "Build a shared library"
   )
index d229826b270b694d0f2d94b7304fdb8290e9951a..27e0d959e13ab4b2ab3e5bbf35e024e2524071e8 100644 (file)
 #cmakedefine DEAL_II_CXX14_CONSTEXPR_BUG
 
 #cmakedefine DEAL_II_DEPRECATED @DEAL_II_DEPRECATED@
+#cmakedefine DEAL_II_DEPRECATED_EARLY @DEAL_II_DEPRECATED_EARLY@
 #cmakedefine DEAL_II_FALLTHROUGH @DEAL_II_FALLTHROUGH@
 #cmakedefine DEAL_II_CONSTEXPR @DEAL_II_CONSTEXPR@
 

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.