Add quotes to cmake_args in guess_compiler_from_mkspec function

These were omitted in the original change, which cause cmake builds to
fail configuring

Change-Id: I37996099aaa0d912ce06b1f06c175cc5cf159e33
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
David Skoland 2020-11-03 10:09:25 +01:00
parent 255cc9abfb
commit e674ee5328

View File

@ -559,7 +559,7 @@ function(guess_compiler_from_mkspec)
if(NOT auto_detect_compiler)
return()
endif()
string(REGEX MATCH "(^|;)-DQT_QMAKE_TARGET_MKSPEC=\([^;]+\)" m ${cmake_args})
string(REGEX MATCH "(^|;)-DQT_QMAKE_TARGET_MKSPEC=\([^;]+\)" m "${cmake_args}")
set(mkspec ${CMAKE_MATCH_2})
if(mkspec MATCHES "-clang(-|$)")
push("-DCMAKE_C_COMPILER=clang")