diff --git a/CMakeLists.txt b/CMakeLists.txt index dbe00729d..4cfc7ed92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,6 +59,7 @@ set(OPENMW_VERSION_RELEASE 0) set(OPENMW_VERSION_COMMITHASH "") set(OPENMW_VERSION_TAGHASH "") +set(OPENMW_VERSION_COMMITDATE "") 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(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 include(OpenMWMacros) diff --git a/apps/launcher/graphicspage.cpp b/apps/launcher/graphicspage.cpp index 5d9d69edf..54ddfd0c9 100644 --- a/apps/launcher/graphicspage.cpp +++ b/apps/launcher/graphicspage.cpp @@ -1,6 +1,6 @@ #include "graphicspage.hpp" -#include +#include #include #include #include diff --git a/files/openmw.appdata.xml b/files/openmw.appdata.xml index 05654d9b9..fd8ad8176 100644 --- a/files/openmw.appdata.xml +++ b/files/openmw.appdata.xml @@ -43,7 +43,7 @@ Copyright 2017 Bret Curtis RolePlaying - + https://openmw.org https://bugs.openmw.org/