CMakeLists.txt
changeset 774 f4b5c2d5449d
parent 679 9c7639f3a741
child 744 f8c468367dab
child 904 16d466589b54
equal deleted inserted replaced
29:3dc459511ab9 30:09e725565686
    13     WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    13     WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    14     OUTPUT_VARIABLE HG_REVISION
    14     OUTPUT_VARIABLE HG_REVISION
    15     ERROR_QUIET
    15     ERROR_QUIET
    16     OUTPUT_STRIP_TRAILING_WHITESPACE
    16     OUTPUT_STRIP_TRAILING_WHITESPACE
    17   )
    17   )
       
    18   IF(HG_REVISION STREQUAL "")
       
    19     SET(HG_REVISION "hg-tip")
       
    20   ENDIF()
    18   SET(LEMON_VERSION ${HG_REVISION} CACHE STRING "LEMON version string.")
    21   SET(LEMON_VERSION ${HG_REVISION} CACHE STRING "LEMON version string.")
    19 ENDIF()
    22 ENDIF()
    20 
    23 
    21 SET(PROJECT_VERSION ${LEMON_VERSION})
    24 SET(PROJECT_VERSION ${LEMON_VERSION})
    22 
    25