source: flair-dev/trunk/cmake-modules/svn_revision.cmake.in@ 31

Last change on this file since 31 was 2, checked in by Sanahuja Guillaume, 9 years ago

initial commit flaircore

File size: 556 bytes
RevLine 
[2]1execute_process(COMMAND svnversion $ENV{IGEP_ROOT}/uav_lib OUTPUT_VARIABLE SVN_REV)
2string(REPLACE "\n" "" SVN_REV ${SVN_REV})
3#set(SVN_REV "svnversion of $ENV{IGEP_ROOT}/uav_lib is ${SVN_REV}")
4
5file(WRITE svnversion.h.txt "#define SVN_REV \"svnversion of $ENV{IGEP_ROOT}/uav_lib is ${SVN_REV}\\n\"\n")
6# copy the file to the final header only if the version changes
7# reduces needless rebuilds
8execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different
9 svnversion.h.txt @CMAKE_CURRENT_SOURCE_DIR@/src/unexported/svnversion.h)
10
Note: See TracBrowser for help on using the repository browser.