From b9e9c952de3473b6e8a52893c2b1b6e8afd8ff65 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 30 May 2018 12:15:39 -0700 Subject: [PATCH] fix setting of abbreviated SHA for master builds --- cmake/macros/SetPackagingParameters.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/macros/SetPackagingParameters.cmake b/cmake/macros/SetPackagingParameters.cmake index bde6d55e84..029c829022 100644 --- a/cmake/macros/SetPackagingParameters.cmake +++ b/cmake/macros/SetPackagingParameters.cmake @@ -106,7 +106,7 @@ macro(SET_PACKAGING_PARAMETERS) separate_arguments(_COMMIT_PARENTS UNIX_COMMAND ${_GIT_LOG_OUTPUT}) list(GET _COMMIT_PARENTS 1 GIT_COMMIT_HASH) else () - set(GIT_COMMIT_HASH _GIT_LOG_OUTPUT) + set(GIT_COMMIT_HASH ${_GIT_LOG_OUTPUT}) endif () if (_GIT_LOG_ERROR OR NOT GIT_COMMIT_HASH)