|
|
@ -72,15 +72,19 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
else(GIT_FOUND)
|
|
|
|
else(GIT_FOUND)
|
|
|
|
message(WARNING "Git executable not found")
|
|
|
|
message(WARNING "Git executable not found")
|
|
|
|
endif(GIT_FOUND)
|
|
|
|
endif(GIT_FOUND)
|
|
|
|
endif(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
execute_process (
|
|
|
|
if(GIT_FOUND)
|
|
|
|
COMMAND ${GIT_EXECUTABLE} log -1 --format='%aI'
|
|
|
|
execute_process (
|
|
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
|
|
|
COMMAND ${GIT_EXECUTABLE} log -1 --format='%aI'
|
|
|
|
RESULT_VARIABLE EXITCODE3
|
|
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
|
|
|
OUTPUT_VARIABLE OPENMW_VERSION_COMMITDATE
|
|
|
|
RESULT_VARIABLE EXITCODE3
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
OUTPUT_VARIABLE OPENMW_VERSION_COMMITDATE
|
|
|
|
string(SUBSTRING ${OPENMW_VERSION_COMMITDATE} 1 10 OPENMW_VERSION_COMMITDATE)
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
|
|
|
|
if(NOT EXITCODE3)
|
|
|
|
|
|
|
|
string(SUBSTRING ${OPENMW_VERSION_COMMITDATE} 1 10 OPENMW_VERSION_COMMITDATE)
|
|
|
|
|
|
|
|
endif(NOT EXITCODE3)
|
|
|
|
|
|
|
|
endif(GIT_FOUND)
|
|
|
|
|
|
|
|
endif(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
|
|
|
|
|
|
|
|
# Macros
|
|
|
|
# Macros
|
|
|
|
include(OpenMWMacros)
|
|
|
|
include(OpenMWMacros)
|
|
|
|