Update build and VC redistributable

Update build: When the build directory is not within the source directory (default when using Qt Creator), the 'Help' - 'About GitAhead' - dialog has no commit ID. Therefore the CMAKE_SOURCE_DIR is passed to git.
VC redistributable: Microsoft has packed the VC redistributable for VS 2015, VS 2017 and VS 2019 int one new VC redistributable.
This commit is contained in:
Stefan Knotzer 2020-08-19 13:38:15 +02:00
parent 74fb544980
commit 32129bf61f
3 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ string(TIMESTAMP GITAHEAD_BUILD_DATE)
find_package(Git) find_package(Git)
if(GIT_FOUND) if(GIT_FOUND)
execute_process( execute_process(
COMMAND ${GIT_EXECUTABLE} show -s --format=%h HEAD COMMAND ${GIT_EXECUTABLE} --git-dir=${CMAKE_SOURCE_DIR}/.git show -s --format=%h HEAD
OUTPUT_VARIABLE GITAHEAD_BUILD_REVISION OUTPUT_VARIABLE GITAHEAD_BUILD_REVISION
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_STRIP_TRAILING_WHITESPACE
) )

Binary file not shown.

Binary file not shown.