mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-10-26 02:29:36 +03:00
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:
parent
74fb544980
commit
32129bf61f
@ -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.
Loading…
Reference in New Issue
Block a user