mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
CPack: Use hash of the head for the file name
Upstream is not always configured ad might give empty results. Ideally we need to re-use the same code as we use for buildinfo, but it's also a bit of a question which exact hash we want to put to the name by default.
This commit is contained in:
parent
ce092a58a2
commit
e355d557f8
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.git/)
|
|||
include(FindGit)
|
||||
if(GIT_FOUND)
|
||||
message(STATUS "-- Found Git: ${GIT_EXECUTABLE}")
|
||||
execute_process(COMMAND git rev-parse --short @{u}
|
||||
execute_process(COMMAND git rev-parse --short HEAD
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE MY_WC_HASH
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue