mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Cmake build. Use 2.0.0 git-tag to receive the number of commits.
This number is only used for created package name.
This commit is contained in:
parent
374cf6a39f
commit
7033b15793
@ -279,7 +279,8 @@ if (LYX_LOCALVERSIONING)
|
|||||||
FIND_PROGRAM(LYX_GITVERSION git)
|
FIND_PROGRAM(LYX_GITVERSION git)
|
||||||
#message(STATUS "gitversion = ${LYX_GITVERSION}")
|
#message(STATUS "gitversion = ${LYX_GITVERSION}")
|
||||||
if(LYX_GITVERSION)
|
if(LYX_GITVERSION)
|
||||||
EXECUTE_PROCESS(COMMAND ${LYX_GITVERSION} "describe" WORKING_DIRECTORY "${TOP_SRC_DIR}" OUTPUT_VARIABLE LYX_PACKAGE_RELEASE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
EXECUTE_PROCESS(COMMAND ${LYX_GITVERSION} describe --match 2.0.0 HEAD
|
||||||
|
WORKING_DIRECTORY "${TOP_SRC_DIR}" OUTPUT_VARIABLE LYX_PACKAGE_RELEASE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
if (LYX_PACKAGE_RELEASE MATCHES "^2\\.0\\.0\\-\([0-9]+\)\\-.*$")
|
if (LYX_PACKAGE_RELEASE MATCHES "^2\\.0\\.0\\-\([0-9]+\)\\-.*$")
|
||||||
# We will add offset of 40000 to get appropriate value to
|
# We will add offset of 40000 to get appropriate value to
|
||||||
# previous svn.
|
# previous svn.
|
||||||
|
Loading…
Reference in New Issue
Block a user