From 01708a44de2c9fe83e554099528b9c2f0a30d731 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Wed, 30 Dec 2020 13:41:16 +0100 Subject: CMake: Fix missing report entries Increment command_count correct way. Fixes: QTBUG-88054 Pick-to: 6.0 Change-Id: I0769814ed75ee12db1cab3b1f85635b4d7ee0605 Reviewed-by: Craig Scott Reviewed-by: Joerg Bornemann --- cmake/QtBuildInformation.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake/QtBuildInformation.cmake') diff --git a/cmake/QtBuildInformation.cmake b/cmake/QtBuildInformation.cmake index 7ad83db036..a50c1acc77 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() -- cgit v1.2.3