]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: use DEAL_II_WARNING_FLAGS variable in bundled/ directory
authorMatthias Maier <tamiko@43-1.org>
Wed, 29 Mar 2023 20:27:39 +0000 (15:27 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 30 Mar 2023 00:22:17 +0000 (19:22 -0500)
bundled/boost-1.70.0/libs/iostreams/src/CMakeLists.txt
bundled/boost-1.70.0/libs/serialization/src/CMakeLists.txt
bundled/kokkos-3.7.00/CMakeLists.txt
bundled/muparser_v2_3_3/CMakeLists.txt
bundled/setup_bundled.cmake
bundled/tbb-2018_U2/src/CMakeLists.txt
bundled/umfpack/AMD/Source/CMakeLists.txt
bundled/umfpack/UMFPACK/Source/CMakeLists.txt

index 4c672a22245dd89a96c96bb2f2bcf0f39ac21aa0..a42462817bd794f77e722b7141634a0ffc44d4e0 100644 (file)
@@ -20,8 +20,8 @@ set(src_boost_iostreams
     mapped_file.cpp
     zlib.cpp
     )
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-c11-extensions)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-deprecated-copy)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-uninitialized)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-c11-extensions)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-deprecated-copy)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-uninitialized)
 
 define_object_library(bundled_boost_iostreams OBJECT ${src_boost_iostreams})
index 91097eb0448deecccddae83136322743d57a8e3b..b36e92a4f536e95ff9d52e1fe6ac654517ffc150 100644 (file)
@@ -54,8 +54,8 @@ set(src_boost_serialization
   xml_wiarchive.cpp
   xml_woarchive.cpp
   )
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-c11-extensions)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-deprecated-copy)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-uninitialized)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-c11-extensions)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-deprecated-copy)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-uninitialized)
 
 define_object_library(bundled_boost_serialization OBJECT ${src_boost_serialization})
index 5c225804a5b9d58457ba3b21fe41cddd33c77c4f..6f332db4245746835c902ccc529dd82fca1b73f7 100644 (file)
@@ -64,9 +64,9 @@ set(src_kokkos
   containers/src/impl/Kokkos_UnorderedMap_impl.cpp
 )
 
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-float-conversion)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-missing-field-initializers)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-suggest-override)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-unused-but-set-parameter)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-float-conversion)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-missing-field-initializers)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-suggest-override)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-unused-but-set-parameter)
 
 define_object_library(bundled_kokkos OBJECT ${src_kokkos})
index 7ab7c80942a44ec636ed23c77d67da5191f93501..153685685974130d7aea406f6963bddd81ea6542 100644 (file)
 #
 # avoid some annoying warnings...
 #
-strip_flag(DEAL_II_CXX_FLAGS "-Wall")
-strip_flag(DEAL_II_CXX_FLAGS "-pedantic")
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-switch)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-nested-anon-types)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-implicit-fallthrough)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-cast-function-type)
-enable_if_supported(DEAL_II_CXX_FLAGS -Wno-float-conversion)
+strip_flag(DEAL_II_WARNING_FLAGS "-Wall")
+strip_flag(DEAL_II_WARNING_FLAGS "-pedantic")
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-switch)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-nested-anon-types)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-implicit-fallthrough)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-cast-function-type)
+enable_if_supported(DEAL_II_WARNING_FLAGS -Wno-float-conversion)
 
 include_directories(
   include/
index 98f8edfb6e68e70c2bdeaffed92717e04db369e6..2b0fb9d5f0cd03a943ec2819c8d4d9dee4e60e51 100644 (file)
@@ -57,7 +57,7 @@ macro(feature_boost_configure_bundled)
     list(APPEND DEAL_II_DEFINITIONS "BOOST_ALL_NO_LIB")
   endif()
 
-  enable_if_supported(DEAL_II_CXX_FLAGS "-Wno-unused-local-typedefs")
+  enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-unused-local-typedefs")
 
   list(APPEND DEAL_II_BUNDLED_INCLUDE_DIRS ${BOOST_FOLDER}/include)
 endmacro()
@@ -135,7 +135,7 @@ macro(feature_tbb_configure_bundled)
   #
   # We have to disable a bunch of warnings:
   #
-  enable_if_supported(DEAL_II_CXX_FLAGS "-Wno-parentheses")
+  enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-parentheses")
 
   #
   # tbb uses dlopen/dlclose, so link against libdl.so as well:
index 7a9b9204c65e2f6667b319ca2508664381bc9e73..805801360a43ae01980368331d120b9899cc4945 100644 (file)
 ## ---------------------------------------------------------------------
 
 #
-# Remove -Wall and -pedantic from DEAL_II_CXX_FLAGS (in directory scope) to
+# Remove -Wall and -pedantic from DEAL_II_WARNING_FLAGS (in directory scope) to
 # avoid some annoying warnings...
 #
-strip_flag(DEAL_II_CXX_FLAGS "-Wall")
-strip_flag(DEAL_II_CXX_FLAGS "-pedantic")
+strip_flag(DEAL_II_WARNING_FLAGS "-Wall")
+strip_flag(DEAL_II_WARNING_FLAGS "-pedantic")
 
 #
 # As discussed in
@@ -36,10 +36,10 @@ enable_if_supported(DEAL_II_CXX_FLAGS "-flifetime-dse=1")
 #
 # Disable other warnings:
 #
-enable_if_supported(DEAL_II_CXX_FLAGS "-Wno-implicit-fallthrough")
-enable_if_supported(DEAL_II_CXX_FLAGS "-Wno-stringop-overflow")
-enable_if_supported(DEAL_II_CXX_FLAGS "-Wno-deprecated-copy")
-enable_if_supported(DEAL_II_CXX_FLAGS "-Wno-tautological-overlap-compare")
+enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-implicit-fallthrough")
+enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-stringop-overflow")
+enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-deprecated-copy")
+enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-tautological-overlap-compare")
 
 
 
index 1a9fac9a5a7a2d9ce97eb86392adea2febfe63e5..c1f372cef6777902940e57dea6eb3f6603631393 100644 (file)
@@ -13,7 +13,7 @@
 ##
 ## ---------------------------------------------------------------------
 
-strip_flag(DEAL_II_CXX_FLAGS "-Wfloat-conversion")
+strip_flag(DEAL_II_WARNING_FLAGS "-Wfloat-conversion")
 
 set(src_amd
   amd_1.cc
index 2c697053eeb1634765161c7a3cb3d00b31e48b13..c5561c5ba86c4483498beb2c1e360e78201e8932 100644 (file)
 # *Shush!*
 # (Remove locally in this subdirectory)
 #
-strip_flag(DEAL_II_CXX_FLAGS "-pedantic")
-strip_flag(DEAL_II_CXX_FLAGS "-Wall")
-strip_flag(DEAL_II_CXX_FLAGS "-Wfloat-conversion")
-enable_if_supported(DEAL_II_CXX_FLAGS "-Wno-sign-compare")
-enable_if_supported(DEAL_II_CXX_FLAGS "-Wno-write-strings")
+strip_flag(DEAL_II_WARNING_FLAGS "-pedantic")
+strip_flag(DEAL_II_WARNING_FLAGS "-Wall")
+strip_flag(DEAL_II_WARNING_FLAGS "-Wextra")
+strip_flag(DEAL_II_WARNING_FLAGS "-Wfloat-conversion")
+enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-sign-compare")
+enable_if_supported(DEAL_II_WARNING_FLAGS "-Wno-write-strings")
 
 
 #

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.