CMake: Support the -qtnamespace configure argument

Task-number: QTBUG-85373
Change-Id: I3f995b31339a3c2b0c97ca806c652bc67846fc69
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2020-07-06 09:40:54 +02:00
parent 63e90281b2
commit 23216a6193

View File

@ -131,6 +131,9 @@ while(configure_args)
elseif(arg STREQUAL "-device-option")
list(POP_FRONT configure_args opt)
list(APPEND device_options "${opt}")
elseif(arg STREQUAL "-qtnamespace")
list(POP_FRONT configure_args namespace)
push("-DQT_NAMESPACE=${namespace}")
elseif(arg STREQUAL "--")
# Everything after this argument will be passed to CMake verbatim.
push(${configure_args})