]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Include bundled include directories as CMake SYSTEM paths
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 15 Feb 2023 15:12:25 +0000 (10:12 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 20 Feb 2023 13:10:46 +0000 (08:10 -0500)
bundled/CMakeLists.txt
cmake/macros/macro_deal_ii_add_library.cmake
cmake/macros/macro_insource_setup_target.cmake
contrib/python-bindings/source/CMakeLists.txt
include/deal.II/arborx/bvh.h
include/deal.II/arborx/distributed_tree.h
include/deal.II/base/memory_space.h
include/deal.II/base/memory_space_data.h
tests/quick_tests/kokkos.cc

index c922570200a10a40b597e1c3e14aa1498245e652..71d4aaceb0194d5ceb0969d87dfbb586d94d0968 100644 (file)
 
 message(STATUS "Setting up bundled features")
 
-include_directories(
-  ${DEAL_II_BUNDLED_INCLUDE_DIRS}
-  ${DEAL_II_INCLUDE_DIRS}
-  )
-
 if(DEAL_II_FEATURE_BOOST_BUNDLED_CONFIGURED)
   add_subdirectory(${BOOST_FOLDER}/libs/serialization/src)
   add_subdirectory(${BOOST_FOLDER}/libs/system/src)
index 87a9fd9fca506fa081700dbfaa007e67d3c75bae..e5e3f2cc19255943e05c0d539f4c79c1181bbb80 100644 (file)
@@ -48,6 +48,11 @@ macro(deal_ii_add_library _library)
       PUBLIC ${DEAL_II_DEFINITIONS} ${DEAL_II_DEFINITIONS_${_build}}
       )
 
+    target_include_directories(${_library}_${_build_lowercase}
+      PUBLIC ${DEAL_II_INCLUDE_DIRS})
+    target_include_directories(${_library}_${_build_lowercase}
+      SYSTEM PUBLIC ${DEAL_II_BUNDLED_INCLUDE_DIRS})
+
     set_property(GLOBAL APPEND PROPERTY DEAL_II_OBJECTS_${_build}
       "$<TARGET_OBJECTS:${_library}_${_build_lowercase}>"
       )
index 556fecaf0d3ed8d5e19475a8655c038e1b2acd97..e765cb5e6756c4766ee6b299232e8fbeff287c00 100644 (file)
@@ -36,9 +36,10 @@ function(insource_setup_target _target _build)
     PRIVATE
       "${CMAKE_BINARY_DIR}/include"
       "${CMAKE_SOURCE_DIR}/include"
-      ${DEAL_II_BUNDLED_INCLUDE_DIRS}
     )
-  target_include_directories(${_target} SYSTEM PRIVATE ${DEAL_II_INCLUDE_DIRS})
+  target_include_directories(${_target}
+    SYSTEM PRIVATE ${DEAL_II_INCLUDE_DIRS} ${DEAL_II_BUNDLED_INCLUDE_DIRS}
+    )
 
   set(_flags "${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${_build}}")
   separate_arguments(_flags)
index 1f04fdbaff4f0600405dc31d9bd2d7e5d14fe4a1..ca1fd416df78d7da5900912c2b33071c41e6e7d5 100644 (file)
 include_directories(
   ${CMAKE_BINARY_DIR}/include/
   ${CMAKE_SOURCE_DIR}/include/
-  ${DEAL_II_BUNDLED_INCLUDE_DIRS}
   ${CMAKE_SOURCE_DIR}/contrib/python-bindings/include/
   SYSTEM
   ${DEAL_II_INCLUDE_DIRS}
+  ${DEAL_II_BUNDLED_INCLUDE_DIRS}
   )
 
 #
index 8cc4d6e053800169be37dc68b686e1717eb9acb7..dbd895bb4f29eb224aeb5fc41679f5fe6e360e7a 100644 (file)
 #  include <deal.II/arborx/access_traits.h>
 
 #  include <ArborX_LinearBVH.hpp>
-
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #  include <Kokkos_Core.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 DEAL_II_NAMESPACE_OPEN
 
index 5e5c5b4ff0238eafb5a0ce41499906efe0d4f4c8..2dba72b54813bd2448c267453ea27302bd9b33fa 100644 (file)
@@ -22,9 +22,7 @@
 #  include <deal.II/arborx/access_traits.h>
 
 #  include <ArborX_DistributedTree.hpp>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #  include <Kokkos_Core.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 DEAL_II_NAMESPACE_OPEN
 
index 2a42940dee240b4beef6e6d568d493f1e1cf15c8..91c87d9f8ff72da2552c10b89b685ba4c00bbf34 100644 (file)
@@ -19,9 +19,7 @@
 
 #include <deal.II/base/config.h>
 
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <Kokkos_Core.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 DEAL_II_NAMESPACE_OPEN
 
index f30bbb32a1a9067679b68ff9c471035dfef5d4fb..827500bdcbadbe9b32eebf5c162640ed52c74806 100644 (file)
@@ -23,9 +23,7 @@
 #include <deal.II/base/exceptions.h>
 #include <deal.II/base/kokkos.h>
 
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <Kokkos_Core.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <functional>
 #include <memory>
index 8bce488af238276fa65137863e631a1e4879dc49..28f190b12906da4aee50ea83fb269a8df860c2c4 100644 (file)
@@ -1,8 +1,7 @@
 
 #include <deal.II/base/config.h>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
+
 #include <Kokkos_Core.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 struct FillFunctor
 {

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.