|
|
@ -59,6 +59,7 @@ set(OPENMW_VERSION_RELEASE 0)
|
|
|
|
|
|
|
|
|
|
|
|
set(OPENMW_VERSION_COMMITHASH "")
|
|
|
|
set(OPENMW_VERSION_COMMITHASH "")
|
|
|
|
set(OPENMW_VERSION_TAGHASH "")
|
|
|
|
set(OPENMW_VERSION_TAGHASH "")
|
|
|
|
|
|
|
|
set(OPENMW_VERSION_COMMITDATE "")
|
|
|
|
|
|
|
|
|
|
|
|
set(OPENMW_VERSION "${OPENMW_VERSION_MAJOR}.${OPENMW_VERSION_MINOR}.${OPENMW_VERSION_RELEASE}")
|
|
|
|
set(OPENMW_VERSION "${OPENMW_VERSION_MAJOR}.${OPENMW_VERSION_MINOR}.${OPENMW_VERSION_RELEASE}")
|
|
|
|
|
|
|
|
|
|
|
@ -73,6 +74,14 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
endif(GIT_FOUND)
|
|
|
|
endif(GIT_FOUND)
|
|
|
|
endif(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
endif(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
execute_process (
|
|
|
|
|
|
|
|
COMMAND ${GIT_EXECUTABLE} log -1 --format='%aI'
|
|
|
|
|
|
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
|
|
|
|
|
|
|
RESULT_VARIABLE EXITCODE3
|
|
|
|
|
|
|
|
OUTPUT_VARIABLE COMMITDATE
|
|
|
|
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
|
|
|
|
string(SUBSTRING ${COMMITDATE} 1 10 OPENMW_VERSION_COMMITDATE)
|
|
|
|
|
|
|
|
|
|
|
|
# Macros
|
|
|
|
# Macros
|
|
|
|
include(OpenMWMacros)
|
|
|
|
include(OpenMWMacros)
|
|
|
|
|
|
|
|
|
|
|
|