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:
parent
405305069f
commit
6af1358742
@ -51,7 +51,7 @@ set(auto_detect_generator TRUE)
|
|||||||
set(auto_detect_compiler TRUE)
|
set(auto_detect_compiler TRUE)
|
||||||
unset(device_options)
|
unset(device_options)
|
||||||
set_property(GLOBAL PROPERTY UNHANDLED_ARGS "")
|
set_property(GLOBAL PROPERTY UNHANDLED_ARGS "")
|
||||||
while(configure_args)
|
while(NOT "${configure_args}" STREQUAL "")
|
||||||
list(POP_FRONT configure_args arg)
|
list(POP_FRONT configure_args arg)
|
||||||
if(arg STREQUAL "-cmake")
|
if(arg STREQUAL "-cmake")
|
||||||
# ignore
|
# ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user