configure: Fix --foo=bar arguments

Commit ae64c54f8cc2491988241a7433f5e8cfc6016ab4 broke configure
arguments like
    --webengine-jumbo-build=20.

That commit transforms the argument to
    -webengine-jumbo-build=20
but single-hyphen arguments take values without an equal sign.

We need to store the unaltered argument (with the two hyphens) for
further handling instead of the single-hyphen variant.

Pick-to: 6.8
Fixes: QTBUG-126872
Change-Id: I243eb072dfe5535a648bd78bb3aeb3b9e0e4ede0
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2024-07-04 15:20:12 +02:00
parent 1ee349bf9d
commit 76d5bceba7

View File

@ -167,7 +167,7 @@ while(NOT "${configure_args}" STREQUAL "")
list(APPEND cmake_args "${configure_args}")
break()
else()
set_property(GLOBAL APPEND PROPERTY UNHANDLED_ARGS "${arg}")
set_property(GLOBAL APPEND PROPERTY UNHANDLED_ARGS "${raw_arg}")
endif()
endwhile()