From c3804ba061ef7ea073dab2855502d35a4d3a67df Mon Sep 17 00:00:00 2001 From: Haoyu Liu Date: Sun, 23 May 2021 10:04:54 +0800 Subject: CMake: fix CMake function qt_commandline_addString 1. a missing '}' breaks CMake 2. the variable "opt" should really be "arg", otherwise it'll be meaningless Pick-to: 6.1 Change-Id: If29557998bf7aa786dc5c821e2c55f1195e7922b Reviewed-by: Joerg Bornemann --- cmake/QtProcessConfigureArgs.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/QtProcessConfigureArgs.cmake') diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake index 24e8c64dc6..c8a18fd654 100644 --- a/cmake/QtProcessConfigureArgs.cmake +++ b/cmake/QtProcessConfigureArgs.cmake @@ -391,7 +391,7 @@ function(qt_commandline_addString arg val nextok) qtConfValidateValue("${arg}" "${val}" success) if(success) if(DEFINED command_line_option_${arg}_variable) - set(opt ${command_line_option_${arg}_variable) + set(arg ${command_line_option_${arg}_variable}) endif() set_property(GLOBAL APPEND PROPERTY "INPUT_${arg}" "${val}") set_property(GLOBAL APPEND PROPERTY CONFIG_INPUTS ${arg}) -- cgit v1.2.3