aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-01-24 09:04:11 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-26 01:40:07 +0000
commite0048274bf03ab73bace7b06dcffee641e2fa5ac (patch)
treecc9cc71df592379cd5d46c1eec66836f73d064c3 /cmake
parentdd4ca4edef3d817cc0421b066b226b7c4a0fb12b (diff)
Use tree hash rather than commit hash in .tag file
We want equal source packages to have the same .tag file, even if their commit hashes differ. Fixes: QTBUG-99608 Change-Id: Ide5047acec78fdd91617577b3c2125feb0b2bdf4 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 17dcba699566bfe052bf2c320e07c2c7cc53094b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtDeclarativeSetup.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtDeclarativeSetup.cmake b/cmake/QtDeclarativeSetup.cmake
index e3125d528a..aeb61d70e4 100644
--- a/cmake/QtDeclarativeSetup.cmake
+++ b/cmake/QtDeclarativeSetup.cmake
@@ -8,7 +8,7 @@ function(qt_declarative_write_tag_header target_name)
endif()
find_program(git_path git)
- if(tag_contents AND NOT tag_contents STREQUAL "$Format:%H$")
+ if(tag_contents AND NOT tag_contents STREQUAL "$Format:%T$")
set(QML_COMPILE_HASH "${tag_contents}")
elseif(git_path AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../.git")
execute_process(