Changes in / [271:cea3cb3bbcd7:276:b4784a66a8e6] in lemon-main
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r236 r274 1 1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6) 2 2 3 #EXECUTE_PROCESS(4 # COMMAND hg id -i5 # OUTPUT_VARIABLE HG_REVISION6 # OUTPUT_STRIP_TRAILING_WHITESPACE)7 8 3 SET(PROJECT_NAME "LEMON") 9 SET(PROJECT_VERSION_MAJOR "0") 10 SET(PROJECT_VERSION_MINOR "99") 11 SET(PROJECT_VERSION_PATCH "0") 12 SET(PROJECT_VERSION 13 "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}") 4 SET(PROJECT_VERSION "hg-tip" CACHE STRING "The version string.") 14 5 15 6 PROJECT(${PROJECT_NAME}) … … 40 31 SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE") 41 32 42 SET(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})43 SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})44 SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})45 33 SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) 46 34 47 35 SET(CPACK_PACKAGE_INSTALL_DIRECTORY 48 "${PROJECT_NAME} ${PROJECT_VERSION _MAJOR}.${PROJECT_VERSION_MINOR}")36 "${PROJECT_NAME} ${PROJECT_VERSION}") 49 37 SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY 50 "${PROJECT_NAME} ${PROJECT_VERSION _MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")38 "${PROJECT_NAME} ${PROJECT_VERSION}") 51 39 52 40 # Variables to generate a component-based installer. -
configure.ac
r259 r273 2 2 3 3 dnl Version information. 4 m4_define([lemon_version_number], []) 4 m4_define([lemon_version_number], 5 [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))]) 6 dnl m4_define([lemon_version_number], []) 7 m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))]) 5 8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))]) 6 m4_define([lemon_version], [ifelse(lemon_version_number(), [], [lemon_hg_revision()], [lemon_version_number()])]) 9 m4_define([lemon_version], [ifelse(lemon_version_number(), 10 [], 11 [lemon_hg_path().lemon_hg_revision()], 12 [lemon_version_number()])]) 7 13 8 14 AC_PREREQ([2.59])
Note: See TracChangeset
for help on using the changeset viewer.