From edfa0a128e6477e71e65dcb7560ae2438c22fad0 Mon Sep 17 00:00:00 2001 From: maier Date: Wed, 6 Mar 2013 10:04:49 +0000 Subject: [PATCH] Export (if possible) svn info in compat mode git-svn-id: https://svn.dealii.org/branches/branch_cmake@28745 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/config/CMakeLists.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/deal.II/cmake/config/CMakeLists.txt b/deal.II/cmake/config/CMakeLists.txt index 8233cac8dc..14577be01f 100644 --- a/deal.II/cmake/config/CMakeLists.txt +++ b/deal.II/cmake/config/CMakeLists.txt @@ -210,9 +210,19 @@ IF(DEAL_II_COMPONENT_COMPAT_FILES) COMPONENT compat_files ) - INSTALL(FILES - DESTINATION ${CMAKE_INSTALL_PREFIX} - COMPONENT compat_files - ) + # + # Export some information about the current svn revision: + # + FIND_PACKAGE(Subversion REQUIRED) + 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 + ) + ENDIF() + ENDIF() -- 2.39.5