From a3d8a359f17e35b7485770ac9a3a731900749276 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 10 Nov 2021 15:56:35 +0100 Subject: configure: Fix --foo=bar arguments This amends commit c5409964b0c627b25131c73f95794314feb51b5d. When detecting a variable assignment, we must ignore arguments that start with a dash. Otherwise, arguments like --prefix=~/Qt are ignored. Change-Id: I3b143113b94ca0d8af92679c1f567fbcec298349 Reviewed-by: Alexandru Croitor --- cmake/QtProcessConfigureArgs.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake index 038905ece7..3c730d9444 100644 --- a/cmake/QtProcessConfigureArgs.cmake +++ b/cmake/QtProcessConfigureArgs.cmake @@ -564,7 +564,7 @@ while(1) endif() # Handle variable assignments - if(arg MATCHES "^([a-zA-Z0-9_-]+)=(.*)") + if(arg MATCHES "^([a-zA-Z0-9_][a-zA-Z0-9_-]*)=(.*)") list(APPEND cmake_var_assignments "${arg}") continue() endif() -- cgit v1.2.3