summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2020-11-12 13:16:50 +0100
committerAlexey Edelev <alexey.edelev@qt.io>2020-11-12 14:25:06 +0000
commit6af1358742a713a5c2202c5921211c5c42f23d62 (patch)
tree2f0c9a56d87e562f504ec84f47f5c188d77b2b85 /cmake
parent405305069fc5f1a98719dbcff6a8a3cbd1714ab0 (diff)
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>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtProcessConfigureArgs.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake
index 8fb8d2f6a5..e861fd9a07 100644
--- a/cmake/QtProcessConfigureArgs.cmake
+++ b/cmake/QtProcessConfigureArgs.cmake
@@ -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