The idea of querying for branch and revision via CMake directly is broken
because this happens at configure and not at build time.
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28753
0785d39b-7218-0410-832d-
ea1e28bc413d
DESTINATION common
COMPONENT compat_files
)
-
- #
- # Export some information about the current svn revision:
- #
- 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}/Version.svn "${_svn_WC_INFO}")
- ELSE()
- FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/Version.svn "")
- 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