CMakeLists.txt
branch1.1
changeset 852 31a389202e65
parent 726 9c7639f3a741
child 791 f8c468367dab
child 1033 16d466589b54
equal deleted inserted replaced
34:3dc459511ab9 35: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