From 6af1358742a713a5c2202c5921211c5c42f23d62 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Thu, 12 Nov 2020 13:16:50 +0100 Subject: [PATCH] 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 --- cmake/QtProcessConfigureArgs.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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