From: bangerth Date: Wed, 6 Mar 2013 11:35:08 +0000 (+0000) Subject: Rename a file. Also create the file if we do not have an svn checkout. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfac51501dceb8e968296e1e40724bc8aa21c108;p=dealii-svn.git Rename a file. Also create the file if we do not have an svn checkout. git-svn-id: https://svn.dealii.org/branches/branch_cmake@28749 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/config/CMakeLists.txt b/deal.II/cmake/config/CMakeLists.txt index 01dca5eb57..c5f7d1a6ec 100644 --- a/deal.II/cmake/config/CMakeLists.txt +++ b/deal.II/cmake/config/CMakeLists.txt @@ -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()