From: maier Date: Wed, 6 Mar 2013 10:04:49 +0000 (+0000) Subject: Export (if possible) svn info in compat mode X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edfa0a128e6477e71e65dcb7560ae2438c22fad0;p=dealii-svn.git Export (if possible) svn info in compat mode git-svn-id: https://svn.dealii.org/branches/branch_cmake@28745 0785d39b-7218-0410-832d-ea1e28bc413d --- 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()