From 122926a4c354be195587d2d0976bb8bbccd171a6 Mon Sep 17 00:00:00 2001
From: Matthias Maier <tamiko@kyomu.43-1.org>
Date: Thu, 18 Jul 2013 20:22:13 +0000
Subject: [PATCH] CMake: Adjust comment width

git-svn-id: https://svn.dealii.org/trunk@30052 0785d39b-7218-0410-832d-ea1e28bc413d
---
 deal.II/CMakeLists.txt                        | 32 +++++++-------
 .../checks/check_01_compiler_features.cmake   | 10 ++---
 .../cmake/checks/check_01_cpu_features.cmake  | 10 ++---
 .../cmake/checks/check_01_cxx_features.cmake  | 20 ++++-----
 .../checks/check_02_system_features.cmake     | 30 ++++++-------
 .../cmake/checks/check_03_compiler_bugs.cmake | 42 +++----------------
 deal.II/cmake/config/CMakeLists.txt           | 30 ++++++-------
 .../macros/macro_configure_feature.cmake      | 20 ++++-----
 deal.II/cmake/setup_cached_variables.cmake    | 30 ++++++-------
 deal.II/cmake/setup_compiler_flags.cmake      | 20 ++++-----
 deal.II/cmake/setup_custom_targets.cmake      | 10 ++---
 deal.II/cmake/setup_deal_ii.cmake             | 30 ++++++-------
 deal.II/cmake/setup_finalize.cmake            | 20 ++++-----
 13 files changed, 136 insertions(+), 168 deletions(-)

diff --git a/deal.II/CMakeLists.txt b/deal.II/CMakeLists.txt
index ed7b0c897a..dfb99c96a4 100644
--- a/deal.II/CMakeLists.txt
+++ b/deal.II/CMakeLists.txt
@@ -15,18 +15,18 @@
 ## ---------------------------------------------------------------------
 
 
-##                                                                       ##
-#             The cmake build system for the deal.II project              #
-#                                                                         #
-#     See doc/readme.html and doc/development/cmake.html for further      #
-#     details on how to use the cmake build system of deal.II.            #
-##                                                                       ##
+##                                                                    ##
+#            The cmake build system for the deal.II project            #
+#                                                                      #
+#    See doc/readme.html and doc/development/cmake.html for further    #
+#    details on how to use the cmake build system of deal.II.          #
+##                                                                    ##
 
-###########################################################################
-#                                                                         #
-#                             Configuration:                              #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                            Configuration:                            #
+#                                                                      #
+########################################################################
 
 #
 # General configuration for cmake:
@@ -108,11 +108,11 @@ ENDFOREACH()
 INCLUDE(setup_finalize)
 
 
-###########################################################################
-#                                                                         #
-#                      Compilation and installation:                      #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                     Compilation and installation:                    #
+#                                                                      #
+########################################################################
 
 MESSAGE(STATUS "")
 MESSAGE(STATUS "Configuring done. Proceed to target definitions now.")
diff --git a/deal.II/cmake/checks/check_01_compiler_features.cmake b/deal.II/cmake/checks/check_01_compiler_features.cmake
index 72606e11ae..c6678d6367 100644
--- a/deal.II/cmake/checks/check_01_compiler_features.cmake
+++ b/deal.II/cmake/checks/check_01_compiler_features.cmake
@@ -14,11 +14,11 @@
 ##
 ## ---------------------------------------------------------------------
 
-###########################################################################
-#                                                                         #
-#                  Check for various compiler features:                   #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                 Check for various compiler features:                 #
+#                                                                      #
+########################################################################
 
 #
 # This file sets up:
diff --git a/deal.II/cmake/checks/check_01_cpu_features.cmake b/deal.II/cmake/checks/check_01_cpu_features.cmake
index 2cf11910c1..d8c275b578 100644
--- a/deal.II/cmake/checks/check_01_cpu_features.cmake
+++ b/deal.II/cmake/checks/check_01_cpu_features.cmake
@@ -15,11 +15,11 @@
 ## ---------------------------------------------------------------------
 
 
-###########################################################################
-#                                                                         #
-#                    Platform and CPU specific tests:                     #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                   Platform and CPU specific tests:                   #
+#                                                                      #
+########################################################################
 
 #
 # This file sets up
diff --git a/deal.II/cmake/checks/check_01_cxx_features.cmake b/deal.II/cmake/checks/check_01_cxx_features.cmake
index 96305031aa..7fcf064bfb 100644
--- a/deal.II/cmake/checks/check_01_cxx_features.cmake
+++ b/deal.II/cmake/checks/check_01_cxx_features.cmake
@@ -28,11 +28,11 @@
 #
 
 
-###########################################################################
-#                                                                         #
-#                              C++11 Support:                             #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                             C++11 Support:                           #
+#                                                                      #
+########################################################################
 
 #
 # See if there is a compiler flag to enable C++11 features
@@ -221,11 +221,11 @@ ELSE()
 ENDIF()
 
 
-###########################################################################
-#                                                                         #
-#                    Check for various C++ features:                      #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                   Check for various C++ features:                    #
+#                                                                      #
+########################################################################
 
 CHECK_CXX_SOURCE_COMPILES(
   "
diff --git a/deal.II/cmake/checks/check_02_system_features.cmake b/deal.II/cmake/checks/check_02_system_features.cmake
index 8c9d152d09..25d54167f5 100644
--- a/deal.II/cmake/checks/check_02_system_features.cmake
+++ b/deal.II/cmake/checks/check_02_system_features.cmake
@@ -31,11 +31,11 @@
 #
 
 
-###########################################################################
-#                                                                         #
-#                     POSIX and Linux specific tests:                     #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                    POSIX and Linux specific tests:                   #
+#                                                                      #
+########################################################################
 
 #
 # Check for various posix (and linux) specific header files and symbols
@@ -77,11 +77,11 @@ IF(NOT m_LIBRARY MATCHES "-NOTFOUND")
 ENDIF()
 
 
-###########################################################################
-#                                                                         #
-#                         Mac OSX specific setup:                         #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                        Mac OSX specific setup:                       #
+#                                                                      #
+########################################################################
 
 IF(CMAKE_SYSTEM_NAME MATCHES "Darwin")
   #
@@ -103,11 +103,11 @@ ENDIF()
 
 
 
-###########################################################################
-#                                                                         #
-#                    Windows and CYGWIN specific setup:                   #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                   Windows and CYGWIN specific setup:                 #
+#                                                                      #
+########################################################################
 
 IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
   #
diff --git a/deal.II/cmake/checks/check_03_compiler_bugs.cmake b/deal.II/cmake/checks/check_03_compiler_bugs.cmake
index 7cb46ed222..cf49fb0e57 100644
--- a/deal.II/cmake/checks/check_03_compiler_bugs.cmake
+++ b/deal.II/cmake/checks/check_03_compiler_bugs.cmake
@@ -14,11 +14,11 @@
 ##
 ## ---------------------------------------------------------------------
 
-###########################################################################
-#                                                                         #
-#                    Check for various compiler bugs:                     #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                   Check for various compiler bugs:                   #
+#                                                                      #
+########################################################################
 
 
 #
@@ -100,38 +100,6 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
 ENDIF()
 
 
-#
-# Some gcc compiler versions have a problem when using an unsigned count
-# in the std::advance function. Unfortunately, this also happens
-# occasionally from within the standard library, so we can't prevent the
-# warning messages. Since this is annoying, switch of the flag -W which
-# causes this.
-#
-# - Matthias Maier, rewritten 2012
-#
-
-# TODO: We use the mpi.h header file for this check. We should test this
-# bug directly...
-CHECK_INCLUDE_FILE_CXX("mpi.h" HAVE_MPI_H)
-
-IF(HAVE_MPI_H)
-  PUSH_TEST_FLAG("-Wunused-parameter")
-  PUSH_TEST_FLAG("-Werror")
-  CHECK_CXX_COMPILER_BUG(
-    "
-    #include <mpi.h>
-    int main() { return 0; }
-    "
-    DEAL_II_ADVANCE_WARNING_BUG)
-  POP_TEST_FLAG()
-  POP_TEST_FLAG()
-
-  IF(DEAL_II_ADVANCE_WARNING_BUG)
-    ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-unused-parameter")
-  ENDIF()
-ENDIF()
-
-
 #
 # In some cases, we would like to name partial specializations
 # as friends. However, the standard forbids us to do so. But
diff --git a/deal.II/cmake/config/CMakeLists.txt b/deal.II/cmake/config/CMakeLists.txt
index baa6300968..f4317e01df 100644
--- a/deal.II/cmake/config/CMakeLists.txt
+++ b/deal.II/cmake/config/CMakeLists.txt
@@ -24,11 +24,11 @@ CONFIGURE_FILE(
   )
 
 
-###########################################################################
-#                                                                         #
-#               Setup and install the convenience macros:                 #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#              Setup and install the convenience macros:               #
+#                                                                      #
+########################################################################
 
 INSTALL(FILES
   ${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake
@@ -39,11 +39,11 @@ INSTALL(FILES
   )
 
 
-###########################################################################
-#                                                                         #
-#         Configure and install the cmake project configuration:          #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#        Configure and install the cmake project configuration:        #
+#                                                                      #
+########################################################################
 
 #
 # Strip -Wno-deprecated from CMAKE_CXX_FLAGS so that deprecation warnings
@@ -138,11 +138,11 @@ INSTALL(FILES
   )
 
 
-###########################################################################
-#                                                                         #
-#          Configure and install the old Makefile configuration:          #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#         Configure and install the old Makefile configuration:        #
+#                                                                      #
+########################################################################
 
 
 IF(DEAL_II_COMPONENT_COMPAT_FILES)
diff --git a/deal.II/cmake/macros/macro_configure_feature.cmake b/deal.II/cmake/macros/macro_configure_feature.cmake
index 3185a56ba1..0ae79de3c0 100644
--- a/deal.II/cmake/macros/macro_configure_feature.cmake
+++ b/deal.II/cmake/macros/macro_configure_feature.cmake
@@ -57,11 +57,11 @@
 #
 
 
-###########################################################################
-#                                                                         #
-#                             Helper Macros:                              #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                            Helper Macros:                            #
+#                                                                      #
+########################################################################
 
 #
 # Some black magic to have substitution in command names:
@@ -150,11 +150,11 @@ MACRO(FEATURE_CONFIGURE_EXTERNAL _feature)
 ENDMACRO()
 
 
-###########################################################################
-#                                                                         #
-#                           CONFIGURE_FEATURE:                            #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                          CONFIGURE_FEATURE:                          #
+#                                                                      #
+########################################################################
 
 MACRO(CONFIGURE_FEATURE _feature)
   #
diff --git a/deal.II/cmake/setup_cached_variables.cmake b/deal.II/cmake/setup_cached_variables.cmake
index 5167c32395..e8667e17c1 100644
--- a/deal.II/cmake/setup_cached_variables.cmake
+++ b/deal.II/cmake/setup_cached_variables.cmake
@@ -54,11 +54,11 @@
 #
 
 
-###########################################################################
-#                                                                         #
-#                     General configuration options:                      #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                    General configuration options:                    #
+#                                                                      #
+########################################################################
 
 If(DEAL_II_HAVE_BUNDLED_DIRECTORY)
   OPTION(DEAL_II_ALLOW_BUNDLED
@@ -113,11 +113,11 @@ IF("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
 ENDIF()
 
 
-###########################################################################
-#                                                                         #
-#                        Compilation and linking:                         #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                       Compilation and linking:                       #
+#                                                                      #
+########################################################################
 
 #
 # Setup CMAKE_BUILD_TYPE:
@@ -292,11 +292,11 @@ UNSET(ENV{CXXFLAGS})
 UNSET(ENV{LDFLAGS})
 
 
-###########################################################################
-#                                                                         #
-#                          Miscellaneous setup:                           #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                         Miscellaneous setup:                         #
+#                                                                      #
+########################################################################
 
 GET_CMAKE_PROPERTY(_res VARIABLES)
 FOREACH(_var ${_res})
diff --git a/deal.II/cmake/setup_compiler_flags.cmake b/deal.II/cmake/setup_compiler_flags.cmake
index fdef42c2f8..92baf5eb1a 100644
--- a/deal.II/cmake/setup_compiler_flags.cmake
+++ b/deal.II/cmake/setup_compiler_flags.cmake
@@ -56,11 +56,11 @@
 #
 
 
-###########################################################################
-#                                                                         #
-#                             Sanity checks:                              #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                            Sanity checks:                            #
+#                                                                      #
+########################################################################
 
 #
 # Check the user provided CXX flags:
@@ -88,11 +88,11 @@ IF(NOT DEAL_II_HAVE_USABLE_CXX_FLAGS)
 ENDIF()
 
 
-###########################################################################
-#                                                                         #
-#                            Compiler setup:                              #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                           Compiler setup:                            #
+#                                                                      #
+########################################################################
 
 IF(DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS)
   #
diff --git a/deal.II/cmake/setup_custom_targets.cmake b/deal.II/cmake/setup_custom_targets.cmake
index 2b7f26e4a0..10bcb7dbea 100644
--- a/deal.II/cmake/setup_custom_targets.cmake
+++ b/deal.II/cmake/setup_custom_targets.cmake
@@ -19,11 +19,11 @@
 #
 
 
-###########################################################################
-#                                                                         #
-#  Custom targets for library, documentation and compat_files components: #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#   Custom targets for library, documentation and compat_files comp.:  #
+#                                                                      #
+########################################################################
 
 ADD_CUSTOM_TARGET(library)
 FOREACH(_build ${DEAL_II_BUILD_TYPES})
diff --git a/deal.II/cmake/setup_deal_ii.cmake b/deal.II/cmake/setup_deal_ii.cmake
index 039b65ae51..931bf618f3 100644
--- a/deal.II/cmake/setup_deal_ii.cmake
+++ b/deal.II/cmake/setup_deal_ii.cmake
@@ -57,11 +57,11 @@
 # *)  Can be overwritten by the command line via -D<...>
 #
 
-###########################################################################
-#                                                                         #
-#                   General information about deal.II:                    #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                  General information about deal.II:                  #
+#                                                                      #
+########################################################################
 
 SET_IF_EMPTY(DEAL_II_PACKAGE_NAME "deal.II")
 
@@ -85,11 +85,11 @@ STRING(REGEX REPLACE
 SET(DEAL_II_VERSION ${DEAL_II_VERSION_MAJOR}.${DEAL_II_VERSION_MINOR})
 
 
-###########################################################################
-#                                                                         #
-#          Information about paths, install locations and names:          #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#         Information about paths, install locations and names:        #
+#                                                                      #
+########################################################################
 
 SET(DEAL_II_PROJECT_CONFIG_NAME "${DEAL_II_PACKAGE_NAME}")
 
@@ -147,11 +147,11 @@ IF(CMAKE_BUILD_TYPE MATCHES "Release")
 ENDIF()
 
 
-###########################################################################
-#                                                                         #
-#    Cleanup and setup that has to happen after the call to PROJECT():    #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#   Cleanup and setup that has to happen after the call to PROJECT():  #
+#                                                                      #
+########################################################################
 
 #
 # Cleanup some files used for storing the names of all object targets that
diff --git a/deal.II/cmake/setup_finalize.cmake b/deal.II/cmake/setup_finalize.cmake
index 6928eee98a..e2f919a309 100644
--- a/deal.II/cmake/setup_finalize.cmake
+++ b/deal.II/cmake/setup_finalize.cmake
@@ -15,11 +15,11 @@
 ## ---------------------------------------------------------------------
 
 
-###########################################################################
-#                                                                         #
-#                       Finalize the configuration:                       #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#                      Finalize the configuration:                     #
+#                                                                      #
+########################################################################
 
 #
 # Hide some cmake specific cached variables. This is annoying...
@@ -61,11 +61,11 @@ FOREACH(_build ${DEAL_II_BUILD_TYPES})
 ENDFOREACH()
 
 
-###########################################################################
-#                                                                         #
-#             And write a nice configuration summary to file:             #
-#                                                                         #
-###########################################################################
+########################################################################
+#                                                                      #
+#            And write a nice configuration summary to file:           #
+#                                                                      #
+########################################################################
 
 SET(_log_detailed "${CMAKE_BINARY_DIR}/detailed.log")
 SET(_log_summary  "${CMAKE_BINARY_DIR}/summary.log")
-- 
2.39.5