Cmake build:

Use ISO 8601 format for LYX_DATE, this makes it translated
This commit is contained in:
Kornel Benko 2012-10-15 17:53:17 +02:00
parent 250f60f36b
commit 794e306c2e

View File

@ -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()