summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2020-12-30 13:41:16 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-01-05 10:52:34 +0000
commit078bd54a38b020635751cd0e96d7bbe7409f3ec0 (patch)
treebddedab25c92acad5dd7d99a37b2a663b72c2342 /cmake
parent2c3fabfafd6064e0678e52d211da4364e996ad13 (diff)
CMake: Fix missing report entries
Increment command_count correct way. Fixes: QTBUG-88054 Change-Id: I0769814ed75ee12db1cab3b1f85635b4d7ee0605 Reviewed-by: Craig Scott <craig.scott@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 01708a44de2c9fe83e554099528b9c2f0a30d731) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuildInformation.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtBuildInformation.cmake b/cmake/QtBuildInformation.cmake
index 3fc5417909..4aac6c4585 100644
--- a/cmake/QtBuildInformation.cmake
+++ b/cmake/QtBuildInformation.cmake
@@ -85,11 +85,11 @@ function(qt_configure_record_command)
if(NOT DEFINED command_count)
set(command_count 0)
- else()
- math(EXPR command_count "${command_count}+1")
endif()
set_property(GLOBAL PROPERTY qt_configure_command_${command_count} "${ARGV}")
+
+ math(EXPR command_count "${command_count}+1")
set_property(GLOBAL PROPERTY qt_configure_command_count "${command_count}")
endfunction()