summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2020-12-29 13:55:31 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-12-29 16:48:39 +0000
commit294f89890e5db0d511b1cc0bf59bb60df99dd68a (patch)
treea33884190ac8d9594456d0a714e99a5575920359 /cmake
parentd5c99c7dfc69caa61f9073a11742051f9abda4ce (diff)
CMake: Fix missing report entries
Use LESS_EQUAL condition since qt_configure_command_count stores last added command index but not actual count Fixes: QTBUG-88054 Change-Id: I8112820f9885bdad5a786a4f6b4890d8f2fbe14b Reviewed-by: Cristian Adam <cristian.adam@qt.io> (cherry picked from commit 642ee46f98c6b3cd98a323f7dc5cac3a738b066c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuildInformation.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/QtBuildInformation.cmake b/cmake/QtBuildInformation.cmake
index ff9cc9d866..15b1a7926a 100644
--- a/cmake/QtBuildInformation.cmake
+++ b/cmake/QtBuildInformation.cmake
@@ -99,7 +99,8 @@ function(qt_configure_eval_commands)
endif()
set(command_index 0)
- while(command_index LESS command_count)
+ # LESS_EQUAL is used because command_count is not actual count, but last added command index
+ while(command_index LESS_EQUAL command_count)
get_property(command_args GLOBAL PROPERTY qt_configure_command_${command_index})
if(NOT command_args)
message(FATAL_ERROR