~ubuntu-branches/ubuntu/wily/openms/wily

« back to all changes in this revision

Viewing changes to cmake/svnversion.cmake

  • Committer: Package Import Robot
  • Author(s): Filippo Rusconi
  • Date: 2012-11-12 15:58:12 UTC
  • Revision ID: package-import@ubuntu.com-20121112155812-vr15wtg9b50cuesg
Tags: upstream-1.9.0
ImportĀ upstreamĀ versionĀ 1.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if (OPENMS_HAS_SVNVERSION)
 
2
        execute_process(COMMAND ${SVNVERSION_EXECUTABLE} -n ${SOURCE_DIR} OUTPUT_VARIABLE SVNVERSION)
 
3
endif()
 
4
if(NOT SVNVERSION)
 
5
        set(SVNVERSION "unknown")
 
6
endif()
 
7
file(WRITE ${SVN_REVISION_FILE}.tmp "// generated by the build system! do not edit this manually\n#define OPENMS_SVN_REVISION \"${SVNVERSION}\"\n")
 
8
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${SVN_REVISION_FILE}.tmp ${SVN_REVISION_FILE})
 
9
file(REMOVE ${SVN_REVISION_FILE}.tmp)