diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-27 13:18:45 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-27 13:20:16 +0300 |
commit | e355d557f83b7925cdee3d05a14849adb19a259a (patch) | |
tree | 4527d142c883d0952f7269a76c07d982d3dd438c /build_files | |
parent | ce092a58a296c8bdfa5086f9084bbe928a24b73c (diff) |
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.
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/packaging.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_files/cmake/packaging.cmake b/build_files/cmake/packaging.cmake index 0cb13e0fc66..b2b14a5e1da 100644 --- a/build_files/cmake/packaging.cmake +++ b/build_files/cmake/packaging.cmake @@ -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 |