COIN-OR::LEMON - Graph Library

Changes in / [276:b4784a66a8e6:271:cea3cb3bbcd7] in lemon-main


Ignore:
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r274 r236  
    11CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
    22
     3#EXECUTE_PROCESS(
     4#  COMMAND hg id -i
     5#  OUTPUT_VARIABLE HG_REVISION
     6#  OUTPUT_STRIP_TRAILING_WHITESPACE)
     7
    38SET(PROJECT_NAME "LEMON")
    4 SET(PROJECT_VERSION "hg-tip" CACHE STRING "The version string.")
     9SET(PROJECT_VERSION_MAJOR "0")
     10SET(PROJECT_VERSION_MINOR "99")
     11SET(PROJECT_VERSION_PATCH "0")
     12SET(PROJECT_VERSION
     13  "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
    514
    615PROJECT(${PROJECT_NAME})
     
    3140  SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
    3241
     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})
    3345  SET(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
    3446
    3547  SET(CPACK_PACKAGE_INSTALL_DIRECTORY
    36     "${PROJECT_NAME} ${PROJECT_VERSION}")
     48    "${PROJECT_NAME} ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
    3749  SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY
    38     "${PROJECT_NAME} ${PROJECT_VERSION}")
     50    "${PROJECT_NAME} ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
    3951
    4052  # Variables to generate a component-based installer.
  • configure.ac

    r273 r259  
    22
    33dnl Version information.
    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]))])
     4m4_define([lemon_version_number], [])
    85m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))])
    9 m4_define([lemon_version], [ifelse(lemon_version_number(),
    10                            [],
    11                            [lemon_hg_path().lemon_hg_revision()],
    12                            [lemon_version_number()])])
     6m4_define([lemon_version], [ifelse(lemon_version_number(), [], [lemon_hg_revision()], [lemon_version_number()])])
    137
    148AC_PREREQ([2.59])
Note: See TracChangeset for help on using the changeset viewer.