source: flair-dev/trunk/cmake-modules/ @ 2

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

initial commit flaircore

File size: 556 bytes
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}")
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)
Note: See TracBrowser for help on using the repository browser.