mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 09:58:46 +00:00
Fixed: Revision 0 bug
This commit is contained in:
parent
baa2699228
commit
6947138110
1 changed files with 4 additions and 2 deletions
|
@ -48,13 +48,15 @@ IF(EXISTS "${ROOT_DIR}/.hg/")
|
||||||
IF(MERCURIAL_FOUND)
|
IF(MERCURIAL_FOUND)
|
||||||
Mercurial_WC_INFO(${ROOT_DIR} ER)
|
Mercurial_WC_INFO(${ROOT_DIR} ER)
|
||||||
SET(REVISION ${ER_WC_REVISION})
|
SET(REVISION ${ER_WC_REVISION})
|
||||||
|
SET(CHANGESET ${ER_WC_CHANGESET})
|
||||||
|
SET(BRANCH ${ER_WC_BRANCH})
|
||||||
ENDIF(MERCURIAL_FOUND)
|
ENDIF(MERCURIAL_FOUND)
|
||||||
ENDIF(EXISTS "${ROOT_DIR}/.hg/")
|
ENDIF(EXISTS "${ROOT_DIR}/.hg/")
|
||||||
|
|
||||||
IF(REVISION)
|
IF(DEFINED REVISION)
|
||||||
IF(EXISTS ${SOURCE_DIR}/revision.h.in)
|
IF(EXISTS ${SOURCE_DIR}/revision.h.in)
|
||||||
NOW(BUILD_DATE)
|
NOW(BUILD_DATE)
|
||||||
CONFIGURE_FILE(${SOURCE_DIR}/revision.h.in revision.h.txt)
|
CONFIGURE_FILE(${SOURCE_DIR}/revision.h.in revision.h.txt)
|
||||||
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E copy revision.h.txt revision.h) # copy_if_different
|
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E copy revision.h.txt revision.h) # copy_if_different
|
||||||
ENDIF(EXISTS ${SOURCE_DIR}/revision.h.in)
|
ENDIF(EXISTS ${SOURCE_DIR}/revision.h.in)
|
||||||
ENDIF(REVISION)
|
ENDIF(DEFINED REVISION)
|
||||||
|
|
Loading…
Reference in a new issue