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
Pick-to: 6.0
Change-Id: I8112820f9885bdad5a786a4f6b4890d8f2fbe14b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Alexey Edelev 2020-12-29 13:55:31 +01:00
parent 6baf36d774
commit 642ee46f98

View File

@ -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