COIN-OR::LEMON - Graph Library

Changeset 994:7d166b8b8018 in lemon


Ignore:
Timestamp:
09/03/10 15:37:19 (9 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Safer call of ./scripts/chg-len.py on Windows (#389)

Still hard to get it worked properly by user. It needs

  • a python interpreter in the exec path
  • the mercurial modules accessible by this interpreter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r993 r994  
    33SET(PROJECT_NAME "LEMON")
    44PROJECT(${PROJECT_NAME})
     5
     6INCLUDE(FindPythonInterp)
    57
    68IF(EXISTS ${PROJECT_SOURCE_DIR}/cmake/version.cmake)
     
    1012ELSE()
    1113  EXECUTE_PROCESS(
    12     COMMAND ./scripts/chg-len.py
     14    COMMAND ${PYTHON_EXECUTABLE} ./scripts/chg-len.py
    1315    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
    1416    OUTPUT_VARIABLE HG_REVISION_PATH
     
    2628    SET(HG_REVISION_ID "hg-tip")
    2729  ELSE()
    28     SET(HG_REVISION_ID ${HG_REVISION_PATH}.${HG_REVISION})
     30    IF(HG_REVISION_PATH STREQUAL "")
     31      SET(HG_REVISION_ID ${HG_REVISION})
     32    ELSE()
     33      SET(HG_REVISION_ID ${HG_REVISION_PATH}.${HG_REVISION})
     34    ENDIF()
    2935  ENDIF()
    3036  SET(LEMON_VERSION ${HG_REVISION_ID} CACHE STRING "LEMON version string.")
     
    4450CHECK_TYPE_SIZE("long long" LONG_LONG)
    4551SET(LEMON_HAVE_LONG_LONG ${HAVE_LONG_LONG})
    46 
    47 INCLUDE(FindPythonInterp)
    4852
    4953ENABLE_TESTING()
Note: See TracChangeset for help on using the changeset viewer.