Re: [CMake] Getting the subversion version using CMake.

2008-04-01 Thread David Cole
Try this in your top level CMakeLists.txt file: FIND_PACKAGE(Subversion) IF(Subversion_FOUND) Subversion_WC_INFO("${CMAKE_CURRENT_SOURCE_DIR}" myproj) MESSAGE(STATUS "myproj_WC_REVISION='${myproj_WC_REVISION}'") ENDIF(Subversion_FOUND) WC == working copy See the macro definition of Subversion

[CMake] Getting the subversion version using CMake.

2008-04-01 Thread Andrew Maclean
We want to coordinate versioning with our subversion repository. Has anyone done this with CMake? There is a file called .svn\entries and the fourth line in that file has a version number e.g. 660. I am thinking of somehow picking up this number and creating a variable to use in our builds. Or is