CMake: Fix configure arguments handling

All configure arguments should be processed as strings
and not be ignored if they satisfy CMake's FALSE criteria
(see https://cmake.org/cmake/help/latest/command/if.html)

Fixes: QTBUG-88424
Change-Id: I932038ad3c5999bed58957dec51fbf892bd650d7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexey Edelev 2020-11-12 13:16:50 +01:00
parent 405305069f
commit 6af1358742

View File

@ -51,7 +51,7 @@ set(auto_detect_generator TRUE)
set(auto_detect_compiler TRUE)
unset(device_options)
set_property(GLOBAL PROPERTY UNHANDLED_ARGS "")
while(configure_args)
while(NOT "${configure_args}" STREQUAL "")
list(POP_FRONT configure_args arg)
if(arg STREQUAL "-cmake")
# ignore