Last change
on this file since 31 was 2, checked in by Sanahuja Guillaume, 9 years ago |
initial commit flaircore
|
File size:
556 bytes
|
Line | |
---|
1 | execute_process(COMMAND svnversion $ENV{IGEP_ROOT}/uav_lib OUTPUT_VARIABLE SVN_REV)
|
---|
2 | string(REPLACE "\n" "" SVN_REV ${SVN_REV})
|
---|
3 | #set(SVN_REV "svnversion of $ENV{IGEP_ROOT}/uav_lib is ${SVN_REV}")
|
---|
4 |
|
---|
5 | file(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
|
---|
8 | execute_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.