mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Cmake build:
Use ISO 8601 format for LYX_DATE, this makes it translated
This commit is contained in:
parent
250f60f36b
commit
794e306c2e
@ -265,9 +265,11 @@ if (LYX_LOCALVERSIONING)
|
||||
set(LYX_REVISION_VERSION "${LYX_PATCH_VERSION}-${tmp_REVISION_VERSION}git")
|
||||
endif()
|
||||
# Override the value from configure.ac, if possible
|
||||
EXECUTE_PROCESS(COMMAND ${LYX_GITVERSION} "log" "-1" "--format=%cd"
|
||||
EXECUTE_PROCESS(COMMAND ${LYX_GITVERSION} "log" "-1" "--format=%ci"
|
||||
WORKING_DIRECTORY "${TOP_SRC_DIR}"
|
||||
OUTPUT_VARIABLE LYX_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
OUTPUT_VARIABLE LYX_DATEtmp OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
string(REGEX MATCH "([0-9]+-[0-9]+-[0-9]+)" LYX_DATE ${LYX_DATEtmp})
|
||||
else()
|
||||
set(LYX_REVISION_VERSION git) #TODO use date
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user