# #
########################################################################
-#
-# Strip -Wno-deprecated-declarations from DEAL_II_CXX_FLAGS so that
-# deprecation warnings are actually shown for user code:
-#
-
-strip_flag(DEAL_II_CXX_FLAGS "-Wno-deprecated-declarations")
-
-#
-# Strip -Wsuggest-override. Enabling this warning is a stylistic choice
-# that might create a substantial amount of warnings in user codebases.
-# Let's be nice and disable the flag for now.
-#
-
-strip_flag(DEAL_II_CXX_FLAGS "-Wsuggest-override")
-
#
# Populate a bunch of CONFIG_* variables with useful information:
#
foreach(_build ${DEAL_II_BUILD_TYPES})
string(TOLOWER ${_build} _build_lowercase)
- if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
- set(_keyword "general")
- else()
+ set(_keyword)
+ if("${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
if(_build MATCHES DEBUG)
set(_keyword "debug")
else()
endif()
endif()
- #
- # Build up library name depending on link type and platform:
- #
-
- if(BUILD_SHARED_LIBS)
- set(_type "SHARED")
- else()
- set(_type "STATIC")
- endif()
-
- set(_name "${CMAKE_${_type}_LIBRARY_PREFIX}${DEAL_II_BASE_NAME}${DEAL_II_${_build}_SUFFIX}${CMAKE_${_type}_LIBRARY_SUFFIX}")
- set(CONFIG_LIBRARIES_${_build}
- "\${DEAL_II_PATH}/${DEAL_II_LIBRARY_RELDIR}/${_name}"
- ${DEAL_II_LIBRARIES_${_build}}
- ${DEAL_II_LIBRARIES}
- )
- list(APPEND CONFIG_LIBRARIES ${_keyword} \${DEAL_II_LIBRARIES_${_build}})
-
set(CONFIG_TARGET_${_build} ${DEAL_II_NAMESPACE}::${DEAL_II_NAMESPACE}_${_build_lowercase})
list(APPEND CONFIG_TARGET ${_keyword} \${DEAL_II_TARGET_${_build}})
endforeach()
#
set(CONFIG_BUILD_DIR TRUE)
-set(CONFIG_INCLUDE_DIRS
- \${DEAL_II_PATH}/include
- ${CMAKE_SOURCE_DIR}/include/
- ${DEAL_II_BUNDLED_INCLUDE_DIRS}
- ${DEAL_II_INCLUDE_DIRS}
- )
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in
# For installation:
#
-# Make sure that we only ever record the bundled subdirectory if it is in
-# fact created:
-if("${DEAL_II_BUNDLED_INCLUDE_DIRS}" STREQUAL "")
- set(_installed_bundled "")
-else()
- set(_installed_bundled
- "\${DEAL_II_PATH}/\${DEAL_II_INCLUDE_RELDIR}/deal.II/bundled"
- )
-endif()
-
set(CONFIG_BUILD_DIR FALSE)
-set(CONFIG_INCLUDE_DIRS
- \${DEAL_II_PATH}/\${DEAL_II_INCLUDE_RELDIR}
- ${_installed_bundled}
- ${DEAL_II_INCLUDE_DIRS}
- )
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in
# _additionally_ used for release targets:
set(DEAL_II_LINKER_FLAGS_RELEASE "@DEAL_II_LINKER_FLAGS_RELEASE@")
-# used for all targets:
-set(DEAL_II_DEFINITIONS "@DEAL_II_DEFINITIONS@")
-set(DEAL_II_USER_DEFINITIONS "${DEAL_II_DEFINITIONS}")
-
-# _additionally_ used for debug targets:
-set(DEAL_II_DEFINITIONS_DEBUG "@DEAL_II_DEFINITIONS_DEBUG@")
-set(DEAL_II_USER_DEFINITIONS_DEBUG "${DEAL_II_DEFINITIONS_DEBUG}")
-
-# _additionally_ used for release targets:
-set(DEAL_II_DEFINITIONS_RELEASE "@DEAL_II_DEFINITIONS_RELEASE@")
-set(DEAL_II_USER_DEFINITIONS_RELEASE "${DEAL_II_DEFINITIONS_RELEASE}")
-
#
# MPI runtime:
#
set(DEAL_II_MPIEXEC_PREFLAGS "@MPIEXEC_PREFLAGS@")
set(DEAL_II_MPIEXEC_POSTFLAGS "@MPIEXEC_POSTFLAGS@")
-#
-# Information about include directories and libraries
-#
-
-# Full list of include directories:
-set(DEAL_II_INCLUDE_DIRS "@CONFIG_INCLUDE_DIRS@")
-
-# Full list of libraries for the debug target:
-set(DEAL_II_LIBRARIES_DEBUG "@CONFIG_LIBRARIES_DEBUG@")
-
-# Full list of libraries for the release target:
-set(DEAL_II_LIBRARIES_RELEASE "@CONFIG_LIBRARIES_RELEASE@")
-
-# Full list of libraries with "debug" and "optimized" keywords for easy use with TARGET_LINK_LIBRARIES:
-set(DEAL_II_LIBRARIES "@CONFIG_LIBRARIES@")
-
#
# Information about library targets and feature configuration