## ---------------------------------------------------------------------
##
-## Copyright (C) 2012 - 2014 by the deal.II authors
+## Copyright (C) 2012 - 2015 by the deal.II authors
##
## This file is part of the deal.II library.
##
#
# General configuration for cmake:
#
-
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
+MESSAGE(STATUS "This is CMake ${CMAKE_VERSION}")
+MESSAGE(STATUS "")
+
IF(POLICY CMP0026)
# enable target LOCATION property
CMAKE_POLICY(SET CMP0026 OLD)
CMAKE_POLICY(SET CMP0037 OLD)
ENDIF()
-MESSAGE(STATUS "This is CMake ${CMAKE_VERSION}")
-LIST(APPEND CMAKE_MODULE_PATH
- ${CMAKE_SOURCE_DIR}/cmake/
- ${CMAKE_SOURCE_DIR}/cmake/modules/
- )
+LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
#
# Load all macros:
#
-INCLUDE(setup_external_macros)
FILE(GLOB _macro_files "cmake/macros/*.cmake")
+MESSAGE(STATUS "Include ${CMAKE_SOURCE_DIR}/cmake/setup_external_macros.cmake")
+INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_external_macros.cmake)
FOREACH(_file ${_macro_files})
+ MESSAGE(STATUS "Include ${_file}")
INCLUDE(${_file})
ENDFOREACH()
# We have to initialize some cached variables before PROJECT is called, so
# do it at this point:
#
-INCLUDE(setup_cached_variables)
+VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_cached_variables.cmake)
#
# Now, set the project and set up the rest:
PROJECT(deal.II CXX C)
ENABLE_LANGUAGE_OPTIONAL(Fortran)
-INCLUDE(setup_deal_ii)
+VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_deal_ii.cmake)
-INCLUDE(setup_compiler_flags)
+VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_compiler_flags.cmake)
#
# Include information about bundled libraries:
#
IF(DEAL_II_HAVE_BUNDLED_DIRECTORY)
- SET(_file ${CMAKE_SOURCE_DIR}/bundled/setup_bundled.cmake)
- MESSAGE(STATUS "")
- MESSAGE(STATUS "Include ${_file}")
- INCLUDE(${_file})
+ VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/bundled/setup_bundled.cmake)
ENDIF()
#
FILE(GLOB _check_files "cmake/checks/*.cmake")
LIST(SORT _check_files)
FOREACH(_file ${_check_files})
- MESSAGE(STATUS "")
- MESSAGE(STATUS "Include ${_file}")
- INCLUDE(${_file})
+ VERBOSE_INCLUDE(${_file})
ENDFOREACH()
#
FILE(GLOB _configure_files "cmake/configure/configure_*.cmake")
LIST(SORT _configure_files) # make sure to include in alphabetical order
FOREACH(_file ${_configure_files})
- MESSAGE(STATUS "")
- MESSAGE(STATUS "Include ${_file}")
- INCLUDE(${_file})
+ VERBOSE_INCLUDE(${_file})
ENDFOREACH()
#
# Finalize the configuration:
#
-INCLUDE(setup_custom_targets)
-INCLUDE(setup_finalize)
-INCLUDE(setup_write_config)
+VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_custom_targets.cmake)
+VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_finalize.cmake)
+VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_write_config.cmake)
#
# CPack configuration
#
-INCLUDE(setup_cpack)
+VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_cpack.cmake)
########################################################################
# #
--- /dev/null
+## ---------------------------------------------------------------------
+##
+## Copyright (C) 2014 - 2015 by the deal.II authors
+##
+## This file is part of the deal.II library.
+##
+## The deal.II library is free software; you can use it, redistribute
+## it, and/or modify it under the terms of the GNU Lesser General
+## Public License as published by the Free Software Foundation; either
+## version 2.1 of the License, or (at your option) any later version.
+## The full text of the license can be found in the file LICENSE at
+## the top level of the deal.II distribution.
+##
+## ---------------------------------------------------------------------
+
+MACRO(VERBOSE_INCLUDE _file)
+ MESSAGE(STATUS "")
+ MESSAGE(STATUS "Include ${_file}")
+ INCLUDE(${_file})
+ENDMACRO()
## ---------------------------------------------------------------------
##
-## Copyright (C) 2012 - 2013 by the deal.II authors
+## Copyright (C) 2012 - 2015 by the deal.II authors
##
## This file is part of the deal.II library.
##
IF(NOT "${DEAL_II_CXX_FLAGS_SAVED}" STREQUAL "${CACHED_DEAL_II_CXX_FLAGS_SAVED}"
OR NOT "${DEAL_II_LINKER_FLAGS_SAVED}" STREQUAL "${CACHED_DEAL_II_LINKER_FLAGS_SAVED}")
- MESSAGE(STATUS "")
# Rerun this test if cxx flags changed:
UNSET(DEAL_II_HAVE_USABLE_CXX_FLAGS CACHE)
ELSE()
#
# *Hooray* We are allowed to set compiler flags :-]
#
- MESSAGE(STATUS "")
- MESSAGE(STATUS "Setting up default compiler flags.")
#
# General setup for GCC and compilers sufficiently close to GCC:
#
IF( CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
- INCLUDE(setup_compiler_flags_gnu)
+ VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_compiler_flags_gnu.cmake)
SET(DEAL_II_KNOWN_COMPILER TRUE)
ENDIF()
# Setup for ICC compiler (version >= 10):
#
IF(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
- INCLUDE(setup_compiler_flags_intel)
+ VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_compiler_flags_intel.cmake)
SET(DEAL_II_KNOWN_COMPILER TRUE)
ENDIF()
# Setup for MSVC compiler (version >= 2012):
#
IF(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
- INCLUDE(setup_compiler_flags_msvc)
+ VERBOSE_INCLUDE(${CMAKE_SOURCE_DIR}/cmake/setup_compiler_flags_msvc.cmake)
SET(DEAL_II_KNOWN_COMPILER TRUE)
ENDIF()
ELSE(DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS)
- MESSAGE(STATUS "")
MESSAGE(STATUS
"Skipped setup of default compiler flags "
"(DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS=OFF)"