]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Rename a file. Also create the file if we do not have an svn checkout.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 6 Mar 2013 11:35:08 +0000 (11:35 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 6 Mar 2013 11:35:08 +0000 (11:35 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28749 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/config/CMakeLists.txt

index 01dca5eb579ce5ad9b82f556d1287aba484558d7..c5f7d1a6ec976b48c69dd35c24fb2cdbdf4b4ab7 100644 (file)
@@ -1,6 +1,6 @@
 #####
 ##
-## Copyright (C) 2012 by the deal.II authors
+## Copyright (C) 2012, 2013 by the deal.II authors
 ##
 ## This file is part of the deal.II library.
 ##
@@ -216,13 +216,15 @@ IF(DEAL_II_COMPONENT_COMPAT_FILES)
   FIND_PACKAGE(Subversion QUIET)
   IF(SUBVERSION_FOUND AND EXISTS ${CMAKE_SOURCE_DIR}/.svn)
     SUBVERSION_WC_INFO(${CMAKE_SOURCE_DIR} _svn)
-    FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/SVN.info "${_svn_WC_INFO}")
-    INSTALL(FILES
-      ${CMAKE_CURRENT_BINARY_DIR}/SVN.info
-      DESTINATION common
-      COMPONENT compat_files
-      )
+    FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/Version.svn "${_svn_WC_INFO}")
+  ELSE()
+    FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/Version.svn "")
   ENDIF()
 
-ENDIF()
+  INSTALL(FILES
+    ${CMAKE_CURRENT_BINARY_DIR}/Version.svn
+    DESTINATION common
+    COMPONENT compat_files
+    )
 
+ENDIF()

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.