# Configuration for the lapack library:
#
-macro(FEATURE_LAPACK_FIND_EXTERNAL var)
+macro(feature_lapack_find_external var)
clear_cmake_required()
find_package(DEAL_II_LAPACK)
# Configuration for mpi support:
#
-macro(FEATURE_MPI_FIND_EXTERNAL var)
+macro(feature_mpi_find_external var)
find_package(DEAL_II_MPI)
if(MPI_FOUND)
endif()
endmacro()
-macro(FEATURE_MPI_CONFIGURE_EXTERNAL)
+macro(feature_mpi_configure_external)
#
# We must convert the MPIEXEC_(PRE|POST)FLAGS strings to lists in order
mark_as_advanced(DEAL_II_MPI_WITH_CUDA_SUPPORT)
endmacro()
-macro(FEATURE_MPI_ERROR_MESSAGE)
+macro(feature_mpi_error_message)
message(FATAL_ERROR "\n"
"Could not find any suitable mpi library!\n"
${MPI_ADDITIONAL_ERROR_STRING}
#
set(DEAL_II_WITH_TASKFLOW OFF CACHE BOOL "")
-macro(FEATURE_TASKFLOW_FIND_EXTERNAL var)
+macro(feature_taskflow_find_external var)
find_package(DEAL_II_TASKFLOW)
if(TASKFLOW_FOUND)
endmacro()
-macro(FEATURE_TASKFLOW_CONFIGURE_BUNDLED)
+macro(feature_taskflow_configure_bundled)
list(APPEND TASKFLOW_BUNDLED_INCLUDE_DIRS ${TASKFLOW_FOLDER}/include)
endmacro()
# library:
#
-macro(FEATURE_TBB_FIND_EXTERNAL var)
+macro(feature_tbb_find_external var)
find_package(DEAL_II_TBB)
if(TBB_FOUND)
endmacro()
-macro(FEATURE_TBB_CONFIGURE_BUNDLED)
+macro(feature_tbb_configure_bundled)
#
# We have to disable a bunch of warnings:
#
)
-macro(FEATURE_BOOST_CONFIGURE_COMMON)
+macro(feature_boost_configure_common)
# Some standard library implementations do not implement std::auto_ptr
# (anymore) which was deprecated for C++11 and removed in the C++17 standard.
# Older boost versions can't know about this but provide a possibility to
endmacro()
-macro(FEATURE_BOOST_CONFIGURE_BUNDLED)
+macro(feature_boost_configure_bundled)
#
# Add rt to the link interface as well, boost/chrono needs it.
#
endif()
endmacro()
-macro(FEATURE_BOOST_FIND_EXTERNAL var)
+macro(feature_boost_find_external var)
find_package(DEAL_II_BOOST)
if(BOOST_FOUND)
endmacro()
-macro(FEATURE_BOOST_CONFIGURE_EXTERNAL)
+macro(feature_boost_configure_external)
FEATURE_BOOST_CONFIGURE_COMMON()
endmacro()
# Configuration for the Ginkgo library:
#
-macro(FEATURE_GINKGO_FIND_EXTERNAL var)
+macro(feature_ginkgo_find_external var)
find_package(DEAL_II_GINKGO)
if(GINKGO_FOUND)
# Configuration for the metis library:
#
-macro(FEATURE_METIS_FIND_EXTERNAL var)
+macro(feature_metis_find_external var)
find_package(DEAL_II_METIS)
if(METIS_FOUND)
set(FEATURE_TRILINOS_DEPENDS MPI)
-macro(FEATURE_TRILINOS_FIND_EXTERNAL var)
+macro(feature_trilinos_find_external var)
find_package(DEAL_II_TRILINOS)
if(TRILINOS_FOUND)
endmacro()
-macro(FEATURE_TRILINOS_CONFIGURE_EXTERNAL)
+macro(feature_trilinos_configure_external)
set(DEAL_II_EXPAND_TRILINOS_SPARSITY_PATTERN "TrilinosWrappers::SparsityPattern")
set(DEAL_II_EXPAND_TRILINOS_BLOCK_SPARSITY_PATTERN "TrilinosWrappers::BlockSparsityPattern")
set(DEAL_II_EXPAND_TRILINOS_SPARSE_MATRICES
set(FEATURE_UMFPACK_DEPENDS LAPACK)
-macro(FEATURE_UMFPACK_CONFIGURE_BUNDLED)
+macro(feature_umfpack_configure_bundled)
set(UMFPACK_BUNDLED_INCLUDE_DIRS
${UMFPACK_FOLDER}/UMFPACK/Include
${UMFPACK_FOLDER}/AMD/Include
)
endmacro()
-macro(FEATURE_UMFPACK_ERROR_MESSAGE)
+macro(feature_umfpack_error_message)
message(FATAL_ERROR "\n"
"Could not find umfpack and supporting libraries!\n"
"Please ensure that the libraries are installed on your computer.\n"
CACHE BOOL "Build deal.II with support for Kokkos." FORCE
)
-macro(FEATURE_KOKKOS_CONFIGURE_BUNDLED)
+macro(feature_kokkos_configure_bundled)
set(KOKKOS_BUNDLED_INCLUDE_DIRS
${KOKKOS_FOLDER}/algorithms/src
${KOKKOS_FOLDER}/containers/src
set(FEATURE_PETSC_AFTER MPI)
-macro(FEATURE_PETSC_FIND_EXTERNAL var)
+macro(feature_petsc_find_external var)
find_package(DEAL_II_PETSC)
if(PETSC_FOUND)
endmacro()
-macro(FEATURE_PETSC_CONFIGURE_EXTERNAL)
+macro(feature_petsc_configure_external)
set(DEAL_II_EXPAND_PETSC_MPI_VECTOR "PETScWrappers::MPI::Vector")
set(DEAL_II_EXPAND_PETSC_MPI_BLOCKVECTOR "PETScWrappers::MPI::BlockVector")
set(DEAL_II_EXPAND_PETSC_SPARSE_MATRICES
endmacro()
-macro(FEATURE_PETSC_ERROR_MESSAGE)
+macro(feature_petsc_error_message)
message(FATAL_ERROR "\n"
"Could not find the petsc library!\n"
${PETSC_ADDITIONAL_ERROR_STRING}
#
set(DEAL_II_WITH_CUDA FALSE CACHE BOOL "")
-macro(FEATURE_CUDA_FIND_EXTERNAL var)
+macro(feature_cuda_find_external var)
if(NOT Kokkos_ENABLE_CUDA)
set(CUDA_ADDITIONAL_ERROR_STRING
${CUDA_ADDITIONAL_ERROR_STRING}
endmacro()
-macro(FEATURE_CUDA_CONFIGURE_EXTERNAL)
+macro(feature_cuda_configure_external)
# We cannot use -pedantic as compiler flags. nvcc generates code that
# produces a lot of warnings when pedantic is enabled. So filter out the
# flag:
endmacro()
-macro(FEATURE_CUDA_ERROR_MESSAGE)
+macro(feature_cuda_error_message)
message(FATAL_ERROR "\n"
"Could not find any suitable cuda library!\n"
${CUDA_ADDITIONAL_ERROR_STRING}
set(FEATURE_ADOLC_AFTER BOOST TRILINOS)
-macro(FEATURE_ADOLC_FIND_EXTERNAL var)
+macro(feature_adolc_find_external var)
find_package(DEAL_II_ADOLC)
if(ADOLC_FOUND)
endmacro()
-macro(FEATURE_ADOLC_CONFIGURE_EXTERNAL)
+macro(feature_adolc_configure_external)
set(DEAL_II_ADOLC_WITH_ADVANCED_BRANCHING ${ADOLC_WITH_ADVANCED_BRANCHING})
set(DEAL_II_ADOLC_WITH_ATRIG_ERF ${ADOLC_WITH_ATRIG_ERF})
set(DEAL_II_ADOLC_WITH_TAPELESS_REFCOUNTING ${ADOLC_WITH_TAPELESS_REFCOUNTING})
set(FEATURE_ARBORX_AFTER MPI)
set(FEATURE_ARBORX_DEPENDS KOKKOS)
-macro(FEATURE_ARBORX_FIND_EXTERNAL var)
+macro(feature_arborx_find_external var)
find_package(ARBORX)
if(ARBORX_FOUND)
endif()
-macro(FEATURE_CGAL_FIND_EXTERNAL var)
+macro(feature_cgal_find_external var)
find_package(DEAL_II_CGAL)
if(CGAL_FOUND)
endmacro()
-macro(FEATURE_CGAL_CONFIGURE_EXTERNAL)
+macro(feature_cgal_configure_external)
# Similarly to the DEAL_II_BOOST_HAS_BROKEN_HEADER_DEPRECATIONS check run
# in configure_20_boost.cmake we have to check whether cgal includes
# a deprecated boost header. If yes, disable the boost deprecated header
set(FEATURE_HDF5_DEPENDS MPI)
-macro(FEATURE_HDF5_FIND_EXTERNAL var)
+macro(feature_hdf5_find_external var)
find_package(DEAL_II_HDF5)
if(HDF5_FOUND)
# Configuration for the MUPARSER library:
#
-macro(FEATURE_MUPARSER_CONFIGURE_BUNDLED)
+macro(feature_muparser_configure_bundled)
set(MUPARSER_BUNDLED_INCLUDE_DIRS ${MUPARSER_FOLDER}/include)
endmacro()
set(FEATURE_P4EST_DEPENDS MPI)
-macro(FEATURE_P4EST_FIND_EXTERNAL var)
+macro(feature_p4est_find_external var)
find_package(DEAL_II_P4EST)
if(P4EST_FOUND)
endif()
endmacro()
-macro(FEATURE_P4EST_CONFIGURE_EXTERNAL)
+macro(feature_p4est_configure_external)
set(DEAL_II_P4EST_WITH_VTK_BINARY ${P4EST_WITH_VTK_BINARY})
set(DEAL_II_P4EST_WITH_SEARCH_LOCAL ${P4EST_WITH_SEARCH_LOCAL})
endmacro()
set(FEATURE_SCALAPACK_DEPENDS MPI LAPACK)
-macro(FEATURE_SCALAPACK_FIND_EXTERNAL var)
+macro(feature_scalapack_find_external var)
find_package(DEAL_II_SCALAPACK)
if(SCALAPACK_FOUND)
set(FEATURE_SLEPC_DEPENDS PETSC)
-macro(FEATURE_SLEPC_FIND_EXTERNAL var)
+macro(feature_slepc_find_external var)
find_package(DEAL_II_SLEPC)
if(SLEPC_FOUND)
endmacro()
-macro(FEATURE_SLEPC_ERROR_MESSAGE)
+macro(feature_slepc_error_message)
message(FATAL_ERROR "\n"
"Could not find the SLEPc library!\n"
${SLEPC_ADDITIONAL_ERROR_STRING}
# Configuration for the SUNDIALS library:
#
-macro(FEATURE_SUNDIALS_FIND_EXTERNAL var)
+macro(feature_sundials_find_external var)
find_package(DEAL_II_SUNDIALS)
if(SUNDIALS_FOUND)
endif()
endmacro()
-macro(FEATURE_SUNDIALS_CONFIGURE_EXTERNAL)
+macro(feature_sundials_configure_external)
set(DEAL_II_SUNDIALS_WITH_IDAS ${SUNDIALS_WITH_IDAS})
endmacro()
#
-macro(FEATURE_SYMENGINE_FIND_EXTERNAL var)
+macro(feature_symengine_find_external var)
find_package(DEAL_II_SYMENGINE)
if(SYMENGINE_FOUND)
endif()
endmacro()
-macro(FEATURE_SYMENGINE_CONFIGURE_EXTERNAL)
+macro(feature_symengine_configure_external)
set(DEAL_II_SYMENGINE_WITH_LLVM ${SYMENGINE_WITH_LLVM})
if(DEAL_II_SYMENGINE_WITH_LLVM)
# add_flags(variable flags)
#
-macro(ADD_FLAGS _variable _flags)
+macro(add_flags _variable _flags)
string(STRIP "${_flags}" _flags_stripped)
if(NOT "${_flags_stripped}" STREQUAL "")
set(${_variable} "${${_variable}} ${_flags}")
# ${_var} is set to true, otherwise it is set to false.
#
-macro(CHECK_COMPILER_SETUP _compiler_flags_unstr _linker_flags_unstr _var)
+macro(check_compiler_setup _compiler_flags_unstr _linker_flags_unstr _var)
#
# Strip leading and trailing whitespace to make CMake 2.8.8 happy
#
# (This just inverts the logic of CHECK_CXX_SOURCE_COMPILES.)
#
-macro(CHECK_CXX_COMPILER_BUG _source _var)
+macro(check_cxx_compiler_bug _source _var)
if(NOT DEFINED ${_var}_OK)
CHECK_CXX_SOURCE_COMPILES(
"${_source}"
# check_mpi_interface(_feature _var),
#
-macro(CHECK_MPI_INTERFACE _feature _var)
+macro(check_mpi_interface _feature _var)
if(DEAL_II_WITH_MPI AND MPI_LIBRARIES)
set(_nope FALSE)
# CLEAR_CMAKE_REQUIRED_FLAGS
#
-macro(CLEAR_CMAKE_REQUIRED)
+macro(clear_cmake_required)
set(CMAKE_REQUIRED_FLAGS)
set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES)
# DEAL_II_STRING_SUFFIXES to the corresponding DEAL_II_* variables
#
-macro(CLEAR_FEATURE _feature)
+macro(clear_feature _feature)
foreach(_var ${DEAL_II_LIST_SUFFIXES} ${DEAL_II_STRING_SUFFIXES})
unset(${_feature}_${_var})
endforeach()
#
# A small macro to set the DEAL_II_WITH_${_feature} variables:
#
-macro(SET_CACHED_OPTION _str _value)
+macro(set_cached_option _str _value)
string(TOLOWER "${_str}" _str_lower)
set(DEAL_II_WITH_${_str}
${_value}
#
# A small macro to post a default error message:
#
-macro(FEATURE_ERROR_MESSAGE _feature)
+macro(feature_error_message _feature)
string(TOLOWER ${_feature} _feature_lowercase)
if(DEFINED ${_feature}_DIR)
#
# Default macro for finding an external library:
#
-macro(FEATURE_FIND_EXTERNAL _feature _var)
+macro(feature_find_external _feature _var)
find_package(DEAL_II_${_feature})
if(${_feature}_FOUND)
set(${_var} TRUE)
# #
########################################################################
-macro(CONFIGURE_FEATURE _feature)
+macro(configure_feature _feature)
#
# Register the feature in the DEAL_II_FEATURES list
)
endif()
- else(DEAL_II_FORCE_BUNDLED_${_feature})
+ else()
#
# Second case: We are allowed to search for an external library
#
set(FEATURE_${_feature}_EXTERNAL_CONFIGURED TRUE)
set_cached_option(${_feature} ON)
- else(FEATURE_${_feature}_EXTERNAL_FOUND)
+ else()
purge_feature(${_feature})
endif()
endif()
- endif(FEATURE_${_feature}_EXTERNAL_FOUND)
+ endif()
endif()
endif()
# to _add_ compile definitions to every target we have specified.
#
-macro(DEAL_II_ADD_DEFINITIONS _name)
+macro(deal_ii_add_definitions _name)
foreach(_build ${DEAL_II_BUILD_TYPES})
string(TOLOWER ${_build} _build_lowercase)
# DEAL_II_DEFINITIONS
#
-macro(DEAL_II_ADD_LIBRARY _library)
+macro(deal_ii_add_library _library)
foreach(_build ${DEAL_II_BUILD_TYPES})
string(TOLOWER ${_build} _build_lowercase)
# deal_ii_add_test(category test_name comparison_file)
#
-function(DEAL_II_ADD_TEST _category _test_name _comparison_file)
+function(deal_ii_add_test _category _test_name _comparison_file)
if(NOT TARGET compile_test_executables)
add_custom_target(compile_test_executables)
# A small wrapper around FIND_FILE to be a bit more verbose
#
-macro(DEAL_II_FIND_FILE _file_name)
+macro(deal_ii_find_file _file_name)
# Save a string representation of the arguments before cmake's
# FIND_FILE gets its hands on it.
to_string(_str ${ARGN})
# A small wrapper around FIND_LIBRARY to be a bit more verbose
#
-macro(DEAL_II_FIND_LIBRARY _library_name)
+macro(deal_ii_find_library _library_name)
# Save a string representation of the arguments before cmake's
# FIND_FILE gets its hands on it.
to_string(_str ${ARGN})
# A small wrapper around FIND_FILE to be a bit more verbose
#
-macro(DEAL_II_FIND_PATH _path_name)
+macro(deal_ii_find_path _path_name)
# Save a string representation of the arguments before cmake's
# FIND_PATH gets its hands on it.
to_string(_str ${ARGN})
# A small wrapper around FIND_PROGRAM to be a bit more verbose
#
-macro(DEAL_II_FIND_PROGRAM _file_name)
+macro(deal_ii_find_program _file_name)
# Save a string representation of the arguments before cmake's
# FIND_PROGRAM gets its hands on it.
to_string(_str ${ARGN})
# This macro has to be called before project()!
#
-macro(DEAL_II_INITIALIZE_CACHED_VARIABLES)
+macro(deal_ii_initialize_cached_variables)
if(NOT DEAL_II_PROJECT_CONFIG_INCLUDED)
message(FATAL_ERROR
#
#
-macro(DEAL_II_INSOURCE_SETUP_TARGET _target _build)
+macro(deal_ii_insource_setup_target _target _build)
string(TOLOWER ${_build} _build_lowercase)
set_target_properties(${_target} PROPERTIES
# empty
#
-macro(DEAL_II_INVOKE_AUTOPILOT)
+macro(deal_ii_invoke_autopilot)
# Generator specific values:
if(CMAKE_GENERATOR MATCHES "Ninja")
# search.
#
-macro(DEAL_II_PACKAGE_HANDLE _feature)
+macro(deal_ii_package_handle _feature)
if(DEFINED ${_feature}_VERSION)
message(STATUS " ${_feature}_VERSION: ${${_feature}_VERSION}")
# Two very small macros that are used below:
#
-macro(SET_IF_EMPTY _variable)
+macro(set_if_empty _variable)
if("${${_variable}}" STREQUAL "")
set(${_variable} ${ARGN})
endif()
endmacro()
-macro(ITEM_MATCHES _var _regex)
+macro(item_matches _var _regex)
set(${_var})
foreach (_item ${ARGN})
if("${_item}" MATCHES ${_regex})
endmacro()
-macro(DEAL_II_PICKUP_TESTS)
+macro(deal_ii_pickup_tests)
if(NOT DEAL_II_PROJECT_CONFIG_INCLUDED)
message(FATAL_ERROR
# PREFIX_GIT_TIMESTAMP
#
-macro(DEAL_II_QUERY_GIT_INFORMATION)
+macro(deal_ii_query_git_information)
message(STATUS "Query git repository information.")
# FATAL_ERROR.
#
-macro(DEAL_II_SETUP_TARGET _target)
+macro(deal_ii_setup_target _target)
if(NOT DEAL_II_PROJECT_CONFIG_INCLUDED)
message(FATAL_ERROR
# decorate_with_stars(message decorated_message)
#
#
-macro(DECORATE_WITH_STARS _message _decorated_message)
+macro(decorate_with_stars _message _decorated_message)
string(LENGTH ${_message} _message_length)
set(_line_length 75)
math(EXPR _unpadded_line_length "${_line_length} - 6")
# enable_if_links(variable flag)
#
-macro(ENABLE_IF_LINKS _variable _flag)
+macro(enable_if_links _variable _flag)
# keep on top to avoid cluttering the _flag and _flag_stripped variables
enable_if_supported(CMAKE_REQUIRED_FLAGS "-Werror")
# enable_if_supported(variable flag)
#
-macro(ENABLE_IF_SUPPORTED _variable _flag)
+macro(enable_if_supported _variable _flag)
string(STRIP "${_flag}" _flag_stripped)
#
# where language is either C or Fortran
#
-macro(ENABLE_LANGUAGE_OPTIONAL _language)
+macro(enable_language_optional _language)
if(NOT ${_language}_CHECKED)
#
# Run this check exactly once:
# evaluate_expression("<expression>")
#
-macro(EVALUATE_EXPRESSION _the_expression)
+macro(evaluate_expression _the_expression)
set(_tmp_name
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/evaluate_expression.tmp"
)
# a list of inst.in files that will be expanded
#
-macro(EXPAND_INSTANTIATIONS _target _inst_in_files)
+macro(expand_instantiations _target _inst_in_files)
foreach (_inst_in_file ${_inst_in_files})
string(REGEX REPLACE "\\.in$" "" _inst_file "${_inst_in_file}" )
# filter_system_libraries(feature)
#
-macro(FILTER_SYSTEM_LIBRARIES _feature)
+macro(filter_system_libraries _feature)
foreach(_variable
${_feature}_LIBRARIES
${_feature}_LIBRARIES_DEBUG
# find_system_library(variable NAMES [list of possible names])
#
-macro(FIND_SYSTEM_LIBRARY)
+macro(find_system_library)
set(_argn ${ARGN})
list(GET _argn 0 _variable)
list(REMOVE_AT _argn 0 1)
# var is set to true if list contains an item that matches regex.
#
-macro(ITEM_MATCHES _var _regex)
+macro(item_matches _var _regex)
set(${_var})
foreach (_item ${ARGN})
if("${_item}" MATCHES ${_regex})
# purge_feature(feature)
#
-macro(PURGE_FEATURE _feature)
+macro(purge_feature _feature)
#
# uncached:
#
# DEAL_II_STRING_SUFFIXES to the corresponding DEAL_II_* variables
#
-macro(REGISTER_FEATURE _feature)
+macro(register_feature _feature)
if(DEFINED ${_feature}_LIBRARIES)
#
# remove_duplicates(list [REVERSE])
#
-macro(REMOVE_DUPLICATES _list)
+macro(remove_duplicates _list)
if(NOT "${${_list}}" STREQUAL "")
if("${ARGN}" STREQUAL "REVERSE")
list(REVERSE ${_list})
# replace_flag(variable flag replacement)
#
-macro(REPLACE_FLAG _variable _flag _replacement)
+macro(replace_flag _variable _flag _replacement)
string(STRIP "${_replacement}" _replacement_stripped)
string(REPLACE " " " " ${_variable} "${${_variable}}")
set(${_variable} " ${${_variable}} ")
# RESET_CMAKE_REQUIRED_FLAGS
#
-macro(RESET_CMAKE_REQUIRED)
+macro(reset_cmake_required)
set(CMAKE_REQUIRED_FLAGS ${DEAL_II_CXX_FLAGS_SAVED})
set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES ${DEAL_II_LINKER_FLAGS_SAVED})
#
# If 'variable' is empty it will be set to 'value'
#
-macro(SET_IF_EMPTY _variable)
+macro(set_if_empty _variable)
if("${${_variable}}" STREQUAL "")
set(${_variable} ${ARGN})
endif()
# otherwise, if DEAL_II_UNITY_BUILD=OFF, then all source files are added to the
# variable _source_files.
#
-macro(SETUP_SOURCE_LIST _unity_include_src _separate_src _n_includes_per_unity_file _output_src)
+macro(setup_source_list _unity_include_src _separate_src _n_includes_per_unity_file _output_src)
if(DEAL_II_UNITY_BUILD)
setup_unity_target("${_unity_include_src}" ${_n_includes_per_unity_file} ${_output_src})
set(${_output_src}
# and the number of files to be included per unity file. It generates the unity
# build files and appends their names to _output_src.
#
-macro(SETUP_UNITY_TARGET _unity_include_src _n_includes_per_unity_file _output_src)
+macro(setup_unity_target _unity_include_src _n_includes_per_unity_file _output_src)
#
# The unity build files need access to the original source files:
#
# strip_flag(variable flag)
#
-macro(STRIP_FLAG _variable _flag)
+macro(strip_flag _variable _flag)
string(REPLACE " " " " ${_variable} "${${_variable}}")
set(${_variable} " ${${_variable}} ")
string(REPLACE " " " " _flag2 "${_flag}")
# switch_library_preference()
#
-macro(SWITCH_LIBRARY_PREFERENCE)
+macro(switch_library_preference)
if(DEAL_II_PREFER_STATIC_LIBS AND NOT DEAL_II_STATIC_EXECUTABLE)
#
# Invert the search order for libraries when DEAL_II_PREFER_STATIC_LIBS
# to_string(string ${list1} ${list2} ...)
#
-macro(TO_STRING _variable)
+macro(to_string _variable)
set(${_variable} "")
foreach(_var ${ARGN})
set(${_variable} "${${_variable}} ${_var}")
# to_string_and_add_prefix(string "prefix" ${list1} ${list2} ...)
#
-macro(TO_STRING_AND_ADD_PREFIX _variable _prefix)
+macro(to_string_and_add_prefix _variable _prefix)
set(${_variable} "")
foreach(_var ${ARGN})
set(${_variable} "${${_variable}} ${_prefix}${_var}")
# variable>} and unsets all supplied (cached) variables if this string
# changes.
#
-macro(UNSET_IF_CHANGED _variable _string)
+macro(unset_if_changed _variable _string)
if(DEFINED ${_variable})
if(NOT "${${_variable}}" STREQUAL "${_string}")
foreach(_arg ${ARGN})
##
## ---------------------------------------------------------------------
-macro(VERBOSE_INCLUDE _file)
+macro(verbose_include _file)
message(STATUS "")
message(STATUS "Include ${_file}")
include(${_file})
# Two macros to make life easier:
#
-macro(FIND_UMFPACK_PATH _comp _file)
+macro(find_umfpack_path _comp _file)
string(TOLOWER ${_comp} _comp_lowercase)
string(TOUPPER ${_comp} _comp_uppercase)
deal_ii_find_path(${_comp}_INCLUDE_DIR ${_file}
)
endmacro()
-macro(FIND_UMFPACK_LIBRARY _comp _name)
+macro(find_umfpack_library _comp _name)
string(TOUPPER ${_comp} _comp_uppercase)
deal_ii_find_library(${_comp}_LIBRARY
NAMES ${_name} lib${_name}
)
endif()
-else(DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS)
+else()
message(STATUS
"Skipped setup of default compiler flags "
"(DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS=OFF)"
)
-endif(DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS)
+endif()
message(STATUS "Setting up python bindings - Done")
message(STATUS "")
-endif(DEAL_II_COMPONENT_PYTHON_BINDINGS)
+endif()
message(STATUS "Setting up documentation - Done")
message(STATUS "")
-endif(DEAL_II_COMPONENT_DOCUMENTATION)
+endif()
#
# Always install a minimalistic README and LICENSE file:
add_dependencies(documentation changelog)
-endif(DEAL_II_COMPONENT_DOCUMENTATION)
+endif()
## ---------------------------------------------------------------------
# Auxiliary functions
-function(CAT IN_FILE OUT_FILE INDENT)
+function(cat IN_FILE OUT_FILE INDENT)
file(READ ${IN_FILE} CONTENTS)
if(${INDENT} MATCHES "TRUE")
file(STRINGS ${IN_FILE} LINESTMP)
endif()
endfunction()
-function(PROCESS IN_DIR OUT_FILE)
+function(process IN_DIR OUT_FILE)
file(APPEND ${OUT_FILE} "<ol>\n")
file(GLOB ENTRY_LIST ${IN_DIR}/[0-9]*)
list(SORT ENTRY_LIST)
cmake_minimum_required(VERSION 3.3.0)
-macro(SET_IF_EMPTY _variable)
+macro(set_if_empty _variable)
if("${${_variable}}" STREQUAL "")
set(${_variable} ${ARGN})
endif()
# A small macro
-macro(SET_IF_EMPTY _variable)
+macro(set_if_empty _variable)
if("${${_variable}}" STREQUAL "")
set(${_variable} ${ARGN})
endif()
-macro(CREATE_TARGETDIRECTORIES_TXT)
+macro(create_targetdirectories_txt)
#
# It gets tricky: Fake a TargetDirectories.txt containing _all_ target
# directories (of the main project and all subprojects) so that the
endforeach()
endmacro()
-macro(CLEAR_TARGETDIRECTORIES_TXT)
+macro(clear_targetdirectories_txt)
execute_process(COMMAND ${CMAKE_COMMAND} -E rename
${CTEST_BINARY_DIRECTORY}/CMakeFiles/TargetDirectories.txt.bck
${CTEST_BINARY_DIRECTORY}/CMakeFiles/TargetDirectories.txt
else()
message("-- Running CTEST_TESTS()")
ctest_test()
- endif(MEMORYCHECK)
+ endif()
if(COVERAGE)
CREATE_TARGETDIRECTORIES_TXT()
OUTPUT_QUIET)
endif()
CLEAR_TARGETDIRECTORIES_TXT()
- endif(COVERAGE)
+ endif()
endif()
endif()