Changeset 899:7d166b8b8018 in lemon-main
- Timestamp:
- 09/03/10 15:37:19 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r898 r899 3 3 SET(PROJECT_NAME "LEMON") 4 4 PROJECT(${PROJECT_NAME}) 5 6 INCLUDE(FindPythonInterp) 5 7 6 8 IF(EXISTS ${PROJECT_SOURCE_DIR}/cmake/version.cmake) … … 10 12 ELSE() 11 13 EXECUTE_PROCESS( 12 COMMAND ./scripts/chg-len.py14 COMMAND ${PYTHON_EXECUTABLE} ./scripts/chg-len.py 13 15 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} 14 16 OUTPUT_VARIABLE HG_REVISION_PATH … … 26 28 SET(HG_REVISION_ID "hg-tip") 27 29 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() 29 35 ENDIF() 30 36 SET(LEMON_VERSION ${HG_REVISION_ID} CACHE STRING "LEMON version string.") … … 44 50 CHECK_TYPE_SIZE("long long" LONG_LONG) 45 51 SET(LEMON_HAVE_LONG_LONG ${HAVE_LONG_LONG}) 46 47 INCLUDE(FindPythonInterp)48 52 49 53 ENABLE_TESTING()
Note: See TracChangeset
for help on using the changeset viewer.