gravatar
ladanyi@tmit.bme.hu
ladanyi@tmit.bme.hu
Put the output of chg-len.py in the version string (#389)
0 1 0
default
1 file changed with 11 insertions and 2 deletions:
↑ Collapse diff ↑
Show white space 6 line context
... ...
@@ -11,2 +11,9 @@
11 11
  EXECUTE_PROCESS(
12
    COMMAND ./scripts/chg-len.py
13
    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
14
    OUTPUT_VARIABLE HG_REVISION_PATH
15
    ERROR_QUIET
16
    OUTPUT_STRIP_TRAILING_WHITESPACE
17
  )
18
  EXECUTE_PROCESS(
12 19
    COMMAND hg id -i
... ...
@@ -18,5 +25,7 @@
18 25
  IF(HG_REVISION STREQUAL "")
19
    SET(HG_REVISION "hg-tip")
26
    SET(HG_REVISION_ID "hg-tip")
27
  ELSE()
28
    SET(HG_REVISION_ID ${HG_REVISION_PATH}.${HG_REVISION})
20 29
  ENDIF()
21
  SET(LEMON_VERSION ${HG_REVISION} CACHE STRING "LEMON version string.")
30
  SET(LEMON_VERSION ${HG_REVISION_ID} CACHE STRING "LEMON version string.")
22 31
ENDIF()
0 comments (0 inline)