]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Remove dump-cache feature.
authorMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 15 May 2014 16:14:47 +0000 (16:14 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 15 May 2014 16:14:47 +0000 (16:14 +0000)
CMake-2.12* is able to read in a CMakeCache.txt file directly, so remove
this horrible code

git-svn-id: https://svn.dealii.org/trunk@32905 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_write_config.cmake
deal.II/doc/users/cmake.html

index 6acc88aefa84536c1d0c73a72434bb6db48f9843..38c03515351d6108b5e7dff92c35eb0a87b2df1c 100644 (file)
@@ -138,11 +138,6 @@ ENDIF()
 _both("DEAL_II_ALLOW_AUTODETECTION = ${DEAL_II_ALLOW_AUTODETECTION}):\n")
 
 
-#
-# Cache for quicker access to avoid the O(n^2) complexity of a loop over
-# _all_ defined variables.
-#
-
 GET_CMAKE_PROPERTY(_variables VARIABLES)
 FOREACH(_var ${_variables})
   IF(_var MATCHES "DEAL_II_WITH")
@@ -239,50 +234,3 @@ ENDIF()
 _summary("  to print a help message with a list of top level targets\n")
 
 _both("#\n###")
-
-
-########################################################################
-#                                                                      #
-#                    Dump the cache into config.cmake:                 #
-#                                                                      #
-########################################################################
-
-SET(_config_cmake "${CMAKE_BINARY_DIR}/config.cmake")
-FILE(WRITE ${_config_cmake}
-"#
-# This is a raw CMake cache dump of this build directory suitable as an
-# initial cache file: Use this file to preseed a CMake cache in an empty
-# build directory by (note that it is still necessary to declare a source
-# directory):
-#   $ cmake -C [...]/config.cmake ../deal.II
-#
-# If you want to have a clean configuration file have a look at
-# doc/users/config.sample
-#\n"
-  )
-
-FUNCTION(_config _var)
-  # It is absolutely beyond my comprehension why on earth there is
-  # hardcoded logic built into CMake to throw an error if one uses
-  # uppercase variants of FindPACKAGE call variables...
-  IF(NOT _var MATCHES "BOOST_DIR")
-    UNSET(${_var})
-  ENDIF()
-  #
-  # We have to get down to the raw entry in the cache, therefore clear the
-  # current value (and do it in a function to get private scope):
-  #
-  FILE(APPEND ${_config_cmake}
-    "SET(${_var} \"${${_var}}\" CACHE STRING \"\")\n"
-    )
-ENDFUNCTION()
-
-GET_CMAKE_PROPERTY(_variables CACHE_VARIABLES)
-FOREACH(_var
-    CMAKE_C_COMPILER
-    CMAKE_CXX_COMPILER
-    CMAKE_Fortran_COMPILER
-    ${_variables}
-    )
-  _config(${_var})
-ENDFOREACH()
index 04615c21c50d6245027a960f9ee35b3930c365e5..7bc712f4f9d69d14e8731bc4598160e709ebf46b 100644 (file)
@@ -978,18 +978,6 @@ $ cmake -C config.sample <...>
       configuration.
     </p>
 
-    <p>
-      The build system automatically exports a <code>config.camke</code>
-      into the binary directory that can be used to conveniently clone a
-      build directories cache entries, e.g. assuming that there is a
-      configured build directory <code>build</code> next to an empty
-      directory <code>build2</code>:
-<pre class="cmake">
-$ cd build2
-$ cmake -C ../build/config.cmake ../deal.II
-</pre>
-    </p>
-
     <a name="compiling"></a>
     <h2> Compiling only certain parts </h2>
     <p>

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.