]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Remove _USER variables
authorMatthias Maier <tamiko@43-1.org>
Fri, 25 Nov 2022 12:31:02 +0000 (06:31 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 25 Nov 2022 12:36:08 +0000 (06:36 -0600)
Traditionally we have used two "independent" sets of variables to keep
track of feature configurations:

  <FEATURE>_INCLUDE_DIRS
  <FEATURE>_DEFINITIONS(|_RELEASE|_DEBUG)

and

  <FEATURE>_USER_INCLUDE_DIRS
  <FEATURE>_USER_DEFINITIONS(|_RELEASE|_DEBUG)

The former was intended for internal use only and the latter for
exporting whatever is necessary to user projects.

However, this has not been used at all in the last 10 years.

So let us remove this distinction and simply always export include dirs
and definitions to users. This simplification is required to switch to
our features to interface targets.

39 files changed:
cmake/config/CMakeLists.txt
cmake/config/Config.cmake.in
cmake/configure/configure_20_boost.cmake
cmake/configure/configure_50_complex_values.cmake
cmake/configure/configure_50_vectorization.cmake
cmake/macros/macro_deal_ii_insource_setup_target.cmake
cmake/macros/macro_deal_ii_setup_target.cmake
cmake/modules/FindADOLC.cmake
cmake/modules/FindARBORX.cmake
cmake/modules/FindASSIMP.cmake
cmake/modules/FindBOOST.cmake
cmake/modules/FindCGAL.cmake
cmake/modules/FindCUDA.cmake
cmake/modules/FindGINKGO.cmake
cmake/modules/FindGMSH.cmake
cmake/modules/FindGSL.cmake
cmake/modules/FindHDF5.cmake
cmake/modules/FindKOKKOS.cmake
cmake/modules/FindLAPACK.cmake
cmake/modules/FindMETIS.cmake
cmake/modules/FindMPI.cmake
cmake/modules/FindOPENCASCADE.cmake
cmake/modules/FindP4EST.cmake
cmake/modules/FindPETSC.cmake
cmake/modules/FindSLEPC.cmake
cmake/modules/FindSUNDIALS.cmake
cmake/modules/FindSYMENGINE.cmake
cmake/modules/FindTASKFLOW.cmake
cmake/modules/FindTBB.cmake
cmake/modules/FindTRILINOS.cmake
cmake/modules/FindUMFPACK.cmake
cmake/setup_compiler_flags.cmake
cmake/setup_compiler_flags_gnu.cmake
cmake/setup_compiler_flags_intel.cmake
cmake/setup_compiler_flags_msvc.cmake
cmake/setup_deal_ii.cmake
cmake/setup_write_config.cmake
doc/developers/cmake-internals.html
doc/users/cmake_user.html

index 2eb87c03f80259b25720ba9544d58cc603970b1a..db465e340b9e4a28ef13a49187d76ce5d11b910b 100644 (file)
@@ -126,7 +126,7 @@ set(CONFIG_INCLUDE_DIRS
   \${DEAL_II_PATH}/include
   ${CMAKE_SOURCE_DIR}/include/
   ${DEAL_II_BUNDLED_INCLUDE_DIRS}
-  ${DEAL_II_USER_INCLUDE_DIRS}
+  ${DEAL_II_INCLUDE_DIRS}
   )
 
 configure_file(
@@ -158,7 +158,7 @@ set(CONFIG_BUILD_DIR FALSE)
 set(CONFIG_INCLUDE_DIRS
   \${DEAL_II_PATH}/\${DEAL_II_INCLUDE_RELDIR}
   ${_installed_bundled}
-  ${DEAL_II_USER_INCLUDE_DIRS}
+  ${DEAL_II_INCLUDE_DIRS}
   )
 
 configure_file(
@@ -344,7 +344,7 @@ to_string_and_add_prefix(CONFIG_INCLUDE_DIRS_PC "-I"
   \\\${prefix}/include
   ${CMAKE_SOURCE_DIR}/include
   ${DEAL_II_BUNDLED_INCLUDE_DIRS}
-  ${DEAL_II_USER_INCLUDE_DIRS}
+  ${DEAL_II_INCLUDE_DIRS}
   )
 
 foreach(_build ${DEAL_II_BUILD_TYPES})
@@ -368,7 +368,7 @@ set(CONFIG_PATH_PC "${CMAKE_INSTALL_PREFIX}")
 to_string_and_add_prefix(CONFIG_INCLUDE_DIRS_PC "-I"
   \\\${includedir}
   ${DEAL_II_BUNDLED_INCLUDE_DIRS}
-  ${DEAL_II_USER_INCLUDE_DIRS}
+  ${DEAL_II_INCLUDE_DIRS}
   )
 
 foreach(_build ${DEAL_II_BUILD_TYPES})
index 11a70b2cc20f7b62a31aded47d36a042d6c0112d..0f1cbfd06d0173264f1d76da743b74f618665ee1 100644 (file)
@@ -132,13 +132,13 @@ set(DEAL_II_LINKER_FLAGS_DEBUG "@DEAL_II_LINKER_FLAGS_DEBUG@")
 set(DEAL_II_LINKER_FLAGS_RELEASE "@DEAL_II_LINKER_FLAGS_RELEASE@")
 
 # used for all targets:
-set(DEAL_II_USER_DEFINITIONS "@DEAL_II_USER_DEFINITIONS@")
+set(DEAL_II_DEFINITIONS "@DEAL_II_DEFINITIONS@")
 
 # _additionally_ used for debug targets:
-set(DEAL_II_USER_DEFINITIONS_DEBUG "@DEAL_II_USER_DEFINITIONS_DEBUG@")
+set(DEAL_II_DEFINITIONS_DEBUG "@DEAL_II_DEFINITIONS_DEBUG@")
 
 # _additionally_ used for release targets:
-set(DEAL_II_USER_DEFINITIONS_RELEASE "@DEAL_II_USER_DEFINITIONS_RELEASE@")
+set(DEAL_II_DEFINITIONS_RELEASE "@DEAL_II_DEFINITIONS_RELEASE@")
 
 #
 # MPI runtime:
index 9559e1abb128e3d620e0be29623e2b13cf59702f..d4b9df4dff0abc657d32877c7be7aa16917cd7b8 100644 (file)
@@ -68,14 +68,12 @@ macro(FEATURE_BOOST_CONFIGURE_COMMON)
 
   reset_cmake_required()
 
-  # Fix some problems by defining some additional preprocessor
-  # symbols. Ultimately these are added into DEAL_II_DEFINITIONS and
-  # DEAL_II_USER_DEFINITIONS. They are separate here so that they show up in
-  # detailed.log under DEAL_II_WITH_BOOST as, logically, they are part of our
-  # boost configuration.
+  # Fix some problems by defining some additional preprocessor symbols.
+  # Ultimately these are added into DEAL_II_DEFINITIONS. They are separate
+  # here so that they show up in detailed.log under DEAL_II_WITH_BOOST as,
+  # logically, they are part of our boost configuration.
   if(NOT DEAL_II_HAS_AUTO_PTR)
     list(APPEND BOOST_DEFINITIONS "BOOST_NO_AUTO_PTR")
-    list(APPEND BOOST_USER_DEFINITIONS "BOOST_NO_AUTO_PTR")
   endif()
 
   enable_if_supported(BOOST_CXX_FLAGS "-Wno-unused-local-typedefs")
@@ -141,7 +139,6 @@ macro(FEATURE_BOOST_CONFIGURE_BUNDLED)
     # BOOST_ALL_NO_LIB on Windows platforms (for bundled boost).
     #
     list(APPEND BOOST_DEFINITIONS "BOOST_ALL_NO_LIB")
-    list(APPEND BOOST_USER_DEFINITIONS "BOOST_ALL_NO_LIB")
   endif()
 endmacro()
 
index f69eda13c590e0736ebb44579dd70fed1a49a679..b8a086c8796fc25459712329e7062c2999d13fa1 100644 (file)
 ## the top level directory of deal.II.
 ##
 ## ---------------------------------------------------------------------
+
 #
 # Configuration for complex value support
 #
 
 if(${DEAL_II_WITH_COMPLEX_VALUES})
-   set(DEAL_II_EXPAND_COMPLEX_SCALARS 
+   set(DEAL_II_EXPAND_COMPLEX_SCALARS
        "std::complex<double>"
        "std::complex<float>"
       )
-   set(DEAL_II_EXPAND_COMPLEX_VECTORS 
+   set(DEAL_II_EXPAND_COMPLEX_VECTORS
        "Vector<std::complex<double> >"
        "Vector<std::complex<float> >"
       )
index 6e2d0abe4c18c72e1ade7a1459d24476575abb29..510e8bd62cf36a2abebc3e3a01c07992901386da 100644 (file)
@@ -12,7 +12,7 @@
 ## the top level directory of deal.II.
 ##
 ## ---------------------------------------------------------------------
+
 #
 # Configuration for real scalar vectorization
 #
@@ -22,19 +22,19 @@ set(DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED "VectorizedArray<double,1>" "Vectoriz
 set(DEAL_II_EXPAND_FLOAT_VECTORIZED "VectorizedArray<float,1>")
 
 if(${DEAL_II_VECTORIZATION_WIDTH_IN_BITS} GREATER 0)
-   set(DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED 
+   set(DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED
       "${DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED}" "VectorizedArray<double,2>" "VectorizedArray<float,4>")
    set(DEAL_II_EXPAND_FLOAT_VECTORIZED  "${DEAL_II_EXPAND_FLOAT_VECTORIZED}" "VectorizedArray<float,4>")
 endif()
 
 if((${DEAL_II_VECTORIZATION_WIDTH_IN_BITS} GREATER 128))
-   set(DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED 
+   set(DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED
       "${DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED}" "VectorizedArray<double,4>" "VectorizedArray<float,8>")
    set(DEAL_II_EXPAND_FLOAT_VECTORIZED  "${DEAL_II_EXPAND_FLOAT_VECTORIZED}" "VectorizedArray<float,8>")
 endif()
 
 if((${DEAL_II_VECTORIZATION_WIDTH_IN_BITS} GREATER 256))
-   set(DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED 
+   set(DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED
       "${DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED}" "VectorizedArray<double,8>" "VectorizedArray<float,16>")
    set(DEAL_II_EXPAND_FLOAT_VECTORIZED  "${DEAL_II_EXPAND_FLOAT_VECTORIZED}" "VectorizedArray<float,16>")
 endif()
index a847b82f22813e4ef0f1f0e8a1e38131bc6ceeaa..4009669a45979d9651de98a94ce4ffdbdac6e68a 100644 (file)
@@ -45,7 +45,7 @@ macro(DEAL_II_INSOURCE_SETUP_TARGET _target _build)
       COMPILE_FLAGS " ${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${_build}}"
       )
     set_property(TARGET ${_target} APPEND PROPERTY
-      COMPILE_DEFINITIONS "${DEAL_II_USER_DEFINITIONS};${DEAL_II_USER_DEFINITIONS_${_build}}"
+      COMPILE_DEFINITIONS "${DEAL_II_DEFINITIONS};${DEAL_II_DEFINITIONS_${_build}}"
       )
 
   else()
index a1efb2de3e1f60a39a24e4a9358fa661a43e4120..90a59ad6f6ac7a6977499ebf6f622ed8c7369f24 100644 (file)
@@ -35,7 +35,7 @@
 #   "${DEAL_II_LINKER_FLAGS ${DEAL_II_LINKER_FLAGS_<build type>}"
 #
 # COMPILE_DEFINITIONS is appended with
-#   "${DEAL_II_USER_DEFINITIONS};${DEAL_II_USER_DEFINITIONS_<build type>}"
+#   "${DEAL_II_DEFINITIONS};${DEAL_II_DEFINITIONS_<build type>}"
 #
 # If no "DEBUG" or "RELEASE" keyword is specified after the target, the
 # current CMAKE_BUILD_TYPE is used instead. A CMAKE_BUILD_TYPE "Debug" is
@@ -119,7 +119,7 @@ macro(DEAL_II_SETUP_TARGET _target)
       COMPILE_FLAGS " ${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${_build}}"
       )
     set_property(TARGET ${_target} APPEND PROPERTY
-      COMPILE_DEFINITIONS "${DEAL_II_USER_DEFINITIONS};${DEAL_II_USER_DEFINITIONS_${_build}}"
+      COMPILE_DEFINITIONS "${DEAL_II_DEFINITIONS};${DEAL_II_DEFINITIONS_${_build}}"
       )
 
   else()
@@ -131,7 +131,7 @@ macro(DEAL_II_SETUP_TARGET _target)
       )
 
     target_compile_definitions(${_target}
-      PUBLIC ${DEAL_II_USER_DEFINITIONS} ${DEAL_II_USER_DEFINITIONS_${_build}}
+      PUBLIC ${DEAL_II_DEFINITIONS} ${DEAL_II_DEFINITIONS_${_build}}
       )
 
   endif()
index 2ac0b2a147c4dcb2bf04b7cf1916375b31cdbc14..a0b0e9bc1dfe7e61c674c368d39fe45251f5999b 100644 (file)
@@ -114,9 +114,6 @@ deal_ii_package_handle(ADOLC
   INCLUDE_DIRS
     REQUIRED ADOLC_INCLUDE_DIR
     ${_additional_include_dirs}
-  USER_INCLUDE_DIRS
-    REQUIRED ADOLC_INCLUDE_DIR
-    ${_additional_include_dirs}
   CLEAR ADOLC_INCLUDE_DIR ADOLC_LIBRARY ADOLC_SETTINGS_H
     ADOLC_DOUBLE_CAST_CHECK ADOLC_ADOUBLE_OSTREAM_CHECK # clean up checks in configure_adolc.cmake
   )
index bce80850663c44405f44da0749b1d1eb2252499d..989aa0a36f05a556a743e8260bea2f1eba3f6261 100644 (file)
@@ -67,6 +67,5 @@ endif()
 deal_ii_package_handle(ARBORX
   # ArborX is a header-only library
   INCLUDE_DIRS REQUIRED ARBORX_INSTALL_INCLUDE_DIR
-  USER_INCLUDE_DIRS REQUIRED ARBORX_INSTALL_INCLUDE_DIR
   CLEAR ARBORX_DIR ArborX_DIR
   )
index 51c6353dcf71896acbf31e6115c1991a984de8b7..ce9ed5944d3b52f9069230450efc52b8b0493c0e 100644 (file)
@@ -38,6 +38,5 @@ deal_ii_find_path(ASSIMP_INC assimp/defs.h
 deal_ii_package_handle(ASSIMP
   LIBRARIES REQUIRED ASSIMP_LIB
   INCLUDE_DIRS REQUIRED ASSIMP_INC
-  USER_INCLUDE_DIRS REQUIRED ASSIMP_INC
   CLEAR ASSIMP_LIB ASSIMP_INC
   )
index 4b5f760ce6b91f142d3b91bbcfb9ad6a1838a7af..ebdfcd9a999cee85d7dbd90dcbf6eca3f739ee58 100644 (file)
@@ -97,7 +97,6 @@ endif()
 deal_ii_package_handle(BOOST
   LIBRARIES REQUIRED Boost_LIBRARIES
   INCLUDE_DIRS REQUIRED Boost_INCLUDE_DIRS
-  USER_INCLUDE_DIRS Boost_INCLUDE_DIRS
   CLEAR
     Boost_DIR Boost_INCLUDE_DIRS Boost_IOSTREAMS_LIBRARY_DEBUG
     Boost_IOSTREAMS_LIBRARY_RELEASE Boost_LIBRARY_DIR
index 1d5eda15a254e4c67e68b5f8344703101518860e..584d8531897acba4d0e94aba7d337f2fb7fdec0e 100644 (file)
@@ -87,13 +87,9 @@ else()
 endif()
 
 deal_ii_package_handle(CGAL
-  INCLUDE_DIRS
-  REQUIRED CGAL_INCLUDE_DIRS
-  LIBRARIES
-  OPTIONAL CGAL_LIBRARIES
-  USER_INCLUDE_DIRS
-  REQUIRED CGAL_INCLUDE_DIRS
+  LIBRARIES OPTIONAL CGAL_LIBRARIES
+  INCLUDE_DIRS REQUIRED CGAL_INCLUDE_DIRS
   CLEAR
-  CGAL_INCLUDE_DIRS
-  CGAL_LIBRARIES
+    CGAL_INCLUDE_DIRS
+    CGAL_LIBRARIES
 )
index b794dec9af572a0d4ca29023870c7e2df2a7eb0c..20efb60b71a4c2a5ed5708995441c9db9b29ffd9 100644 (file)
@@ -46,7 +46,6 @@ endif()
 deal_ii_package_handle(CUDA
   LIBRARIES REQUIRED CUDA_LIBRARIES CUDA_cusparse_LIBRARY CUDA_cusolver_LIBRARY
   INCLUDE_DIRS REQUIRED CUDA_INCLUDE_DIRS
-  USER_INCLUDE_DIRS REQUIRED CUDA_INCLUDE_DIRS
   CLEAR
     CUDA_cublas_device_LIBRARY
     CUDA_cublas_LIBRARY
index 008003dd0c49dff622ae90e5243af8e5686c7e1a..ccc7bdb229dde8bd596ddcc45078d9952c149622 100644 (file)
@@ -78,6 +78,5 @@ endif()
 deal_ii_package_handle(GINKGO
   LIBRARIES REQUIRED ${_libraries}
   INCLUDE_DIRS REQUIRED GINKGO_INSTALL_INCLUDE_DIR
-  USER_INCLUDE_DIRS REQUIRED GINKGO_INSTALL_INCLUDE_DIR
   CLEAR Ginkgo_DIR ${_libraries}
   )
index 60601d84cc1e452af7c81a245c8fd57cab749579..9947d8cbbc8cecda83652821e4020e8a998d074a 100644 (file)
@@ -54,17 +54,9 @@ else()
 endif()
 
 deal_ii_package_handle(GMSH
-  EXECUTABLE 
-    REQUIRED GMSH_EXE
-  LIBRARIES
-    OPTIONAL GMSH_LIBRARY
-  INCLUDE_DIRS 
-    OPTIONAL GMSH_INCLUDE_DIR
-  USER_INCLUDE_DIRS 
-    OPTIONAL GMSH_INCLUDE_DIR
+  EXECUTABLE REQUIRED GMSH_EXE
+  LIBRARIES OPTIONAL GMSH_LIBRARY
+  INCLUDE_DIRS OPTIONAL GMSH_INCLUDE_DIR
   CLEAR
-    GMSH_EXE 
-    GMSH_LIBRARY 
-    GMSH_INCLUDE_DIR 
-    GMSH_WITH_API
+    GMSH_EXE GMSH_LIBRARY GMSH_INCLUDE_DIR GMSH_WITH_API
   )
index 726de2d9cebc31d8b153993c00b8dfb504613364..1d4aa7b93c51d0323e98bfb1b83afc4e716b5073 100644 (file)
@@ -76,7 +76,5 @@ deal_ii_package_handle(GSL
     OPTIONAL GSL_CBLAS_LIBRARY
   INCLUDE_DIRS
     REQUIRED GSL_INCLUDE_DIR
-  USER_INCLUDE_DIRS
-    REQUIRED GSL_INCLUDE_DIR
   CLEAR GSL_LIBRARY GSL_CBLAS_LIBRARY GSL_INCLUDE_DIR
   )
index d013167b7a31b0e3f7c249826c3047949cb15323..a40aed85300826055e2ff42767df8a74a30045f6 100644 (file)
@@ -47,8 +47,6 @@ deal_ii_package_handle(HDF5
     OPTIONAL MPI_C_LIBRARIES
   INCLUDE_DIRS
     REQUIRED _include_dirs
-  USER_INCLUDE_DIRS
-    REQUIRED _include_dirs
   CLEAR
     HDF5_C_COMPILER_EXECUTABLE HDF5_C_LIBRARY_dl HDF5_C_LIBRARY_hdf5
     HDF5_C_LIBRARY_m HDF5_C_LIBRARY_mpi HDF5_C_LIBRARY_sz HDF5_C_LIBRARY_z
index 5e0f10fcf3fd680fdfdf50e7a2bd68932663d2d5..6ef4b0115a0f89384df6565ded7a6a59350f5fc6 100644 (file)
@@ -82,7 +82,6 @@ else()
   deal_ii_package_handle(KOKKOS
     LIBRARIES REQUIRED KOKKOS_CORE_LIBRARY KOKKOS_CONTAINERS_LIBRARY
     INCLUDE_DIRS REQUIRED KOKKOS_INSTALL_INCLUDE_DIR
-    USER_INCLUDE_DIRS REQUIRED KOKKOS_INSTALL_INCLUDE_DIR
     CXX_FLAGS OPTIONAL KOKKOS_COMPILE_FLAGS
     LINKER_FLAGS OPTIONAL KOKKOS_EXTRA_LD_FLAGS
     CLEAR KOKKOS_DIR KOKKOS_CORE_LIBRARY KOKKOS_CONTAINERS_LIBRARY
index ee3ddb2288334760cf0b161d42f0f6277f50c172..6b39f3cb332088e37410aa10e124af7eb17886b9 100644 (file)
@@ -107,7 +107,6 @@ deal_ii_package_handle(LAPACK
     OPTIONAL BLAS_LIBRARIES ${_additional_libraries}
   LINKER_FLAGS OPTIONAL LAPACK_LINKER_FLAGS BLAS_LINKER_FLAGS
   INCLUDE_DIRS OPTIONAL LAPACK_INCLUDE_DIRS
-  USER_INCLUDE_DIRS OPTIONAL LAPACK_INCLUDE_DIRS
   CLEAR
     atlas_LIBRARY atlcblas_LIBRARY atllapack_LIBRARY blas_LIBRARY
     eigen_blas_LIBRARY f77blas_LIBRARY gslcblas_LIBRARY lapack_LIBRARY
index 96d0a748f48fa99a23f57f53176c90c328052022..b31d8d5ee47585cc49c33bcbb2d521013b224a2f 100644 (file)
@@ -87,7 +87,5 @@ deal_ii_package_handle(METIS
     OPTIONAL MPI_C_LIBRARIES
   INCLUDE_DIRS
     REQUIRED METIS_INCLUDE_DIR
-  USER_INCLUDE_DIRS
-    REQUIRED METIS_INCLUDE_DIR 
   CLEAR METIS_LIBRARY METIS_INCLUDE_DIR
   )
index 5124acbe3fd0795f45228fbca8a85ef3d34a2429..bf31acf82b0bd164ac9aa4374adec59684a1bbd6 100644 (file)
@@ -170,8 +170,6 @@ deal_ii_package_handle(MPI
     OPTIONAL MPI_CXX_LIBRARIES MPI_Fortran_LIBRARIES MPI_C_LIBRARIES _mpi_libopen_pal_library
   INCLUDE_DIRS
     OPTIONAL MPI_CXX_INCLUDE_PATH MPI_C_INCLUDE_PATH
-  USER_INCLUDE_DIRS
-    OPTIONAL MPI_CXX_INCLUDE_PATH MPI_C_INCLUDE_PATH
   CXX_FLAGS OPTIONAL MPI_CXX_COMPILE_FLAGS
   LINKER_FLAGS OPTIONAL MPI_CXX_LINK_FLAGS
   CLEAR
index d1861554e9897e28218f1b81eb74d888e9deb475..6754aa44ccf8f440be65457bdd58b01f3dc841ce 100644 (file)
@@ -89,8 +89,6 @@ deal_ii_package_handle(OPENCASCADE
     REQUIRED ${_libraries}
   INCLUDE_DIRS
     REQUIRED OPENCASCADE_INCLUDE_DIR
-  USER_INCLUDE_DIRS
-    REQUIRED OPENCASCADE_INCLUDE_DIR
   CLEAR
     _opencascade_libraries ${_libraries}
   )
index 94f022155844c52d3513fed56032d2d1e1ea36f4..dec566ae11198fed97f89253b93f5d4f6d25f11b 100644 (file)
@@ -204,8 +204,6 @@ deal_ii_package_handle(P4EST
     OPTIONAL LAPACK_LIBRARIES MPI_C_LIBRARIES
   INCLUDE_DIRS
     REQUIRED P4EST_INCLUDE_DIR SC_INCLUDE_DIR
-  USER_INCLUDE_DIRS
-    REQUIRED P4EST_INCLUDE_DIR SC_INCLUDE_DIR
   CLEAR
     SC_INCLUDE_DIR P4EST_LIBRARY_OPTIMIZED SC_LIBRARY_OPTIMIZED
     P4EST_LIBRARY_DEBUG SC_LIBRARY_DEBUG P4EST_INCLUDE_DIR
index 5383b3cd33bfaf662e0e9a63d64b35d3f5e0dffe..5510095c292b5a1112488f844337243f5f53852c 100644 (file)
@@ -214,9 +214,6 @@ deal_ii_package_handle(PETSC
   INCLUDE_DIRS
     REQUIRED PETSC_INCLUDE_DIR_COMMON PETSC_INCLUDE_DIR_ARCH
     OPTIONAL PETSC_INCLUDE_DIR_MPIUNI _petsc_includes
-  USER_INCLUDE_DIRS
-    REQUIRED PETSC_INCLUDE_DIR_COMMON PETSC_INCLUDE_DIR_ARCH
-    OPTIONAL PETSC_INCLUDE_DIR_MPIUNI _petsc_includes
   CLEAR
     PETSC_LIBRARY PETSC_INCLUDE_DIR_COMMON PETSC_INCLUDE_DIR_ARCH
     PETSC_PETSCVARIABLES ${_cleanup_variables}
index ca60d8c17bdbe65f94dd9443a3c032890d3a0f09..186051fa09c2deea982a8b420b808d8b524dcf4d 100644 (file)
@@ -94,7 +94,5 @@ deal_ii_package_handle(SLEPC
     REQUIRED SLEPC_LIBRARY PETSC_LIBRARIES
   INCLUDE_DIRS
     REQUIRED SLEPC_INCLUDE_DIR_ARCH SLEPC_INCLUDE_DIR_COMMON
-  USER_INCLUDE_DIRS
-    REQUIRED SLEPC_INCLUDE_DIR_ARCH SLEPC_INCLUDE_DIR_COMMON
   CLEAR SLEPC_LIBRARY SLEPC_INCLUDE_DIR_ARCH SLEPC_INCLUDE_DIR_COMMON
   )
index a9c4aa8e8ba332fe18aaf6d5741bc4ae3a163d8d..301f02f25122611e4592b3538855f47ed8b7ca10 100644 (file)
@@ -131,8 +131,6 @@ deal_ii_package_handle(SUNDIALS
     ${_sundials_lib_par}
   INCLUDE_DIRS REQUIRED
     SUNDIALS_INCLUDE_DIR
-  USER_INCLUDE_DIRS REQUIRED
-    SUNDIALS_INCLUDE_DIR
   CLEAR
     SUNDIALS_LIB_IDA
     SUNDIALS_LIB_IDAS
index a9ea291bd6c72c96006f3b4ecf98d7261a4117cc..0c7fdb611e1440df610a81d61f163831daa98d31 100644 (file)
@@ -135,6 +135,5 @@ set(SYMENGINE_LIBRARIES ${_symengine_libraries})
 deal_ii_package_handle(SYMENGINE
   LIBRARIES REQUIRED SYMENGINE_LIBRARIES
   INCLUDE_DIRS REQUIRED SYMENGINE_INCLUDE_DIRS
-  USER_INCLUDE_DIRS REQUIRED SYMENGINE_INCLUDE_DIRS
   CLEAR SYMENGINE_SETTINGS_H SYMENGINE_SKIP_DEPENDENCIES SymEngine_DIR
 )
index b668607645d83d3d90fec431e3a8cf69a65b479c..07b192180664bcefd4d429cc51141372c121cdad 100644 (file)
@@ -53,6 +53,5 @@ string(REGEX REPLACE
 
 deal_ii_package_handle(TASKFLOW
   INCLUDE_DIRS REQUIRED TASKFLOW_INCLUDE_DIR
-  USER_INCLUDE_DIRS REQUIRED TASKFLOW_INCLUDE_DIR
   CLEAR TASKFLOW_CONFIG_DIR
   )
index 5cd14eaa877d9b913b29154792f4697292f6e86e..13928f6eeb39ecb2baed7b8e564dbd92e9d680ab 100644 (file)
@@ -117,6 +117,5 @@ endif()
 deal_ii_package_handle(TBB
   LIBRARIES REQUIRED ${_libraries}
   INCLUDE_DIRS REQUIRED TBB_INCLUDE_DIR
-  USER_INCLUDE_DIRS REQUIRED TBB_INCLUDE_DIR
   CLEAR TBB_DEBUG_LIBRARY TBB_LIBRARY TBB_INCLUDE_DIR
   )
index cdfb4e960f59472bc782dc4efabf4238c2b9f6be..ac3f6d0ec4e55ae77d3a681988b800b230349c90 100644 (file)
@@ -162,9 +162,6 @@ deal_ii_package_handle(TRILINOS
   INCLUDE_DIRS
     REQUIRED Trilinos_INCLUDE_DIRS
     OPTIONAL Trilinos_TPL_INCLUDE_DIRS
-  USER_INCLUDE_DIRS
-    REQUIRED Trilinos_INCLUDE_DIRS
-    OPTIONAL Trilinos_TPL_INCLUDE_DIRS
   CXX_FLAGS
     OPTIONAL KOKKOS_COMPILE_FLAGS
   LINKER_FLAGS
index 0bf6af99db8de8c22e19397ec97f4ec84ad720b7..8b090b36576048d783b6f14931d414a73653cfdd 100644 (file)
@@ -135,9 +135,6 @@ deal_ii_package_handle(UMFPACK
   INCLUDE_DIRS
     REQUIRED UMFPACK_INCLUDE_DIR AMD_INCLUDE_DIR
     OPTIONAL SuiteSparse_config_INCLUDE_DIR
-  USER_INCLUDE_DIRS
-    REQUIRED UMFPACK_INCLUDE_DIR AMD_INCLUDE_DIR
-    OPTIONAL SuiteSparse_config_INCLUDE_DIR
   LINKER_FLAGS
     OPTIONAL LAPACK_LINKER_FLAGS
   CLEAR
index e63341247fba40435c649e8b99aa8eeade28310b..cea84087608e93e61eaababec2e82d6705810b31 100644 (file)
@@ -35,9 +35,6 @@
 #   DEAL_II_DEFINITIONS
 #   DEAL_II_DEFINITIONS_DEBUG
 #   DEAL_II_DEFINITIONS_RELEASE
-#   DEAL_II_USER_DEFINITIONS
-#   DEAL_II_USER_DEFINITIONS_DEBUG
-#   DEAL_II_USER_DEFINITIONS_RELEASE
 #
 # All modifications shall be guarded with the ENABLE_IF_SUPPORTED
 # or ENABLE_IF_LINKS macro, e.g.
index 2d069ac1e41b734a72d12913cd0f77ab1bdf0994..72b6a2d6c18785fc2704b4b3c949b1cfa365a969 100644 (file)
@@ -198,7 +198,6 @@ if (CMAKE_BUILD_TYPE MATCHES "Release")
   # Disable assert() in deal.II and user projects in release mode
   #
   list(APPEND DEAL_II_DEFINITIONS_RELEASE "NDEBUG")
-  list(APPEND DEAL_II_USER_DEFINITIONS_RELEASE "NDEBUG")
 
   #
   # There are many places in the library where we create a new typedef and then
@@ -218,7 +217,6 @@ endif()
 if (CMAKE_BUILD_TYPE MATCHES "Debug")
 
   list(APPEND DEAL_II_DEFINITIONS_DEBUG "DEBUG")
-  list(APPEND DEAL_II_USER_DEFINITIONS_DEBUG "DEBUG")
 
   #
   # In recent versions, gcc often eliminates too much debug information
index 146b87d99c9240c18033a14a4411168626d8e47d..9b761091b50c1ad30271d0379861f27cac380c52 100644 (file)
@@ -181,7 +181,6 @@ if (CMAKE_BUILD_TYPE MATCHES "Release")
   # Disable assert() in deal.II and user projects in release mode
   #
   list(APPEND DEAL_II_DEFINITIONS_RELEASE "NDEBUG")
-  list(APPEND DEAL_II_USER_DEFINITIONS_RELEASE "NDEBUG")
 
   # equivalent to -fno-strict-aliasing:
   enable_if_supported(DEAL_II_CXX_FLAGS_RELEASE "-no-ansi-alias")
@@ -200,7 +199,6 @@ endif()
 
 if (CMAKE_BUILD_TYPE MATCHES "Debug")
   list(APPEND DEAL_II_DEFINITIONS_DEBUG "DEBUG")
-  list(APPEND DEAL_II_USER_DEFINITIONS_DEBUG "DEBUG")
 
   add_flags(DEAL_II_CXX_FLAGS_DEBUG "-O0")
 
index 5aaf651421243bd03515f8755f62dba7e7f72898..e129122cbc522db3be5a27662410d904ee1a95aa 100644 (file)
@@ -46,7 +46,6 @@ enable_if_supported(DEAL_II_CXX_FLAGS "/EHsc")
 # Globally disable some legacy min and max macros that cause problems:
 enable_if_supported(DEAL_II_CXX_FLAGS "/NOMINMAX")
 list(APPEND DEAL_II_DEFINITIONS "NOMINMAX")
-list(APPEND DEAL_II_USER_DEFINITIONS "NOMINMAX")
 
 # fix "fatal error C1128: number of sections exceeded object file format limit"
 # happening in debug mode with visual studio 2015
@@ -104,7 +103,6 @@ if (CMAKE_BUILD_TYPE MATCHES "Release")
   # Disable assert() in deal.II and user projects in release mode
   #
   list(APPEND DEAL_II_DEFINITIONS_RELEASE "NDEBUG")
-  list(APPEND DEAL_II_USER_DEFINITIONS_RELEASE "NDEBUG")
 
 endif()
 
@@ -117,7 +115,6 @@ endif()
 
 if (CMAKE_BUILD_TYPE MATCHES "Debug")
   list(APPEND DEAL_II_DEFINITIONS_DEBUG "DEBUG")
-  list(APPEND DEAL_II_USER_DEFINITIONS_DEBUG "DEBUG")
 
   # generate some debug info:
   enable_if_supported(DEAL_II_CXX_FLAGS_DEBUG "/Zi /MDd /Od")
index 90cf4cecaa288e904bfaa9f591f033bf28f16c3a..670efd87f7f198e0c115d1b4258aa90b39ac43e4 100644 (file)
@@ -133,8 +133,7 @@ endif()
 
 set(DEAL_II_LIST_SUFFIXES
   DEFINITIONS DEFINITIONS_RELEASE DEFINITIONS_DEBUG
-  USER_DEFINITIONS USER_DEFINITIONS_RELEASE USER_DEFINITIONS_DEBUG
-  INCLUDE_DIRS USER_INCLUDE_DIRS BUNDLED_INCLUDE_DIRS
+  INCLUDE_DIRS BUNDLED_INCLUDE_DIRS
   LIBRARIES LIBRARIES_RELEASE LIBRARIES_DEBUG
   )
 
index c57a50cb91c13789fb0526c0e7406290934b7984..a975b82cf4bcbddc3c00c561017a72e4c63d0652 100644 (file)
@@ -145,16 +145,7 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug")
   _detailed("#        DEAL_II_DEFINITIONS_DEBUG:    ${BASE_DEFINITIONS_DEBUG}\n")
 endif()
 
-_detailed("#        DEAL_II_USER_DEFINITIONS:     ${BASE_DEFINITIONS}\n")
-if(CMAKE_BUILD_TYPE MATCHES "Release")
-  _detailed("#        DEAL_II_USER_DEFINITIONS_REL: ${BASE_DEFINITIONS_RELEASE}\n")
-endif()
-if(CMAKE_BUILD_TYPE MATCHES "Debug")
-  _detailed("#        DEAL_II_USER_DEFINITIONS_DEB: ${BASE_DEFINITIONS_DEBUG}\n")
-endif()
-
 _detailed("#        DEAL_II_INCLUDE_DIRS          ${BASE_INCLUDE_DIRS}\n")
-_detailed("#        DEAL_II_USER_INCLUDE_DIRS:    ${BASE_USER_INCLUDE_DIRS}\n")
 _detailed("#        DEAL_II_BUNDLED_INCLUDE_DIRS: ${BASE_BUNDLED_INCLUDE_DIRS}\n")
 
 _detailed("#        DEAL_II_LIBRARIES:            ${BASE_LIBRARIES}\n")
index be102262eec3b4971185e88c6f8172f66bfc4223..07825d90b62326dded2ef11b434b5d6cc3fc9cf0 100644 (file)
@@ -346,7 +346,7 @@ RESET_CMAKE_REQUIRED()
 FEATURE_FOUND
 FEATURE_LIBRARIES (with optimized, debug, release keywords)
 FEATURE_LIBRARIES(_DEBUG|_RELEASE)
-FEATURE_INCLUDE_DIRS FEATURE_USER_INCLUDE_DIRS
+FEATURE_INCLUDE_DIRS
 FEATURE_LINKER_FLAGS(|_DEBUG|_RELEASE)
 FEATURE_CXX_FLAGS(|_DEBUG|_RELEASE)
 FEATURE_DEFINITIONS(|_DEBUG|_RELEASE)
@@ -422,7 +422,7 @@ SET_IF_EMPTY(FEATURE_DIR "$ENV{FEATURE_DIR}")
 <pre>
 FEATURE_LIBRARIES
 FEATURE_LIBRARIES(|_DEBUG|_RELEASE)
-FEATURE_(|USER_|BUNDLED_)INCLUDE_DIRS
+FEATURE_(|BUNDLED_)INCLUDE_DIRS
 FEATURE_LINKER_FLAGS(|_DEBUG|_RELEASE)
 FEATURE_CXX_FLAGS(|_DEBUG|_RELEASE)
 FEATURE_DEFINITIONS(|_DEBUG|_RELEASE)
@@ -548,17 +548,12 @@ DEAL_II_FORCE_BUNDLED_&lt;FEATURE&gt;        (an option)
       </ul>
 
     <li>
-      For internal use, for setting necessary include dirs for the compilation of the
+      Used to keep track of external include dirs, necessary for the
+      compilation of the library and user programs:
       <acronym>deal.II</acronym> library:
       <ul>
         <li> <code>DEAL_II_INCLUDE_DIRS</code>
       </ul>
-    <li>
-      Used to keep track of external include dirs, necessary for the
-      compilation of user programs:
-      <ul>
-        <li> <code>DEAL_II_USER_INCLUDE_DIRS</code>
-      </ul>
     <li>
       Include dirs from bundled packages necessary for the compilation of
       the library and user projects out of the build directory:
@@ -567,22 +562,14 @@ DEAL_II_FORCE_BUNDLED_&lt;FEATURE&gt;        (an option)
       </ul>
 
     <li>
-      For internal use, for setting necessary preprocessor definitions
-      (<code>-D&lt;...&gt;</code>) for the compilation of the
-      deal.II library:
+      For setting necessary preprocessor definitions
+      (<code>-D&lt;...&gt;</code>) for the compilation of the deal.II
+      library:
       <ul>
         <li> <code>DEAL_II_DEFINITIONS</code>
         <li> <code>DEAL_II_DEFINITIONS_DEBUG</code>
         <li> <code>DEAL_II_DEFINITIONS_RELEASE</code>
       </ul>
-    <li>
-      For external use, used to keep track of external preprocessor
-      definitions, necessary for the compilation of user programs:
-      <ul>
-        <li> <code>DEAL_II_USER_DEFINITIONS</code>
-        <li> <code>DEAL_II_USER_DEFINITIONS_DEBUG</code>
-        <li> <code>DEAL_II_USER_DEFINITIONS_RELEASE</code>
-      </ul>
 
     <li>
       For internal and external use, for setting necessary compiler flags,
index f526394afd0207ffc9991b3ba4f616cf7edb3307..c1fcaebe2edde5c9854c6eb2621ada602be9e80c 100644 (file)
@@ -489,9 +489,9 @@ DEAL_II_CXX_FLAGS_RELEASE
 DEAL_II_LINKER_FLAGS
 DEAL_II_LINKER_FLAGS_DEBUG
 DEAL_II_LINKER_FLAGS_RELEASE
-DEAL_II_USER_DEFINITIONS
-DEAL_II_USER_DEFINITIONS_DEBUG
-DEAL_II_USER_DEFINITIONS_RELEASE
+DEAL_II_DEFINITIONS
+DEAL_II_DEFINITIONS_DEBUG
+DEAL_II_DEFINITIONS_RELEASE
 </pre>
 
 
@@ -790,19 +790,19 @@ DEAL_II_BUILD_DIR             - true if deal.II was picked up from a build
 # Compiler and linker configuration
 #
 
-DEAL_II_CXX_COMPILER             - the compiler used to compile deal.II
+DEAL_II_CXX_COMPILER         - the compiler used to compile deal.II
 
-DEAL_II_CXX_FLAGS                - compile flags for all configurations
-DEAL_II_CXX_FLAGS_DEBUG          - _additional_ compile flags for the debug configuration
-DEAL_II_CXX_FLAGS_RELEASE        - _additional_ compile flags for the release configuration
+DEAL_II_CXX_FLAGS            - compile flags for all configurations
+DEAL_II_CXX_FLAGS_DEBUG      - _additional_ compile flags for the debug configuration
+DEAL_II_CXX_FLAGS_RELEASE    - _additional_ compile flags for the release configuration
 
-DEAL_II_LINKER_FLAGS             - link flags for all configurations
-DEAL_II_LINKER_FLAGS_DEBUG       - _additional_ link flags for debug configuration
-DEAL_II_LINKER_FLAGS_RELEASE     - _additional_ link flags for release configuration
+DEAL_II_LINKER_FLAGS         - link flags for all configurations
+DEAL_II_LINKER_FLAGS_DEBUG   - _additional_ link flags for debug configuration
+DEAL_II_LINKER_FLAGS_RELEASE - _additional_ link flags for release configuration
 
-DEAL_II_USER_DEFINITIONS         - compile definitions for all configurations
-DEAL_II_USER_DEFINITIONS_DEBUG   - _additional_ compile definitions for debug configuration
-DEAL_II_USER_DEFINITIONS_RELEASE - _additional_ compile definitions for release configuration
+DEAL_II_DEFINITIONS          - compile definitions for all configurations
+DEAL_II_DEFINITIONS_DEBUG    - _additional_ compile definitions for debug configuration
+DEAL_II_DEFINITIONS_RELEASE  - _additional_ compile definitions for release configuration
 
 #
 # Information about MPI runtime for the mpi implementation used in the

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.