From cfac51501dceb8e968296e1e40724bc8aa21c108 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 6 Mar 2013 11:35:08 +0000 Subject: [PATCH] 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 --- deal.II/cmake/config/CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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() -- 2.39.5