summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-07-06 09:09:14 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-07-08 07:08:56 +0200
commitfe5fa1d974524584100e56baa8280a97178917f9 (patch)
tree2fca94a7b4b638e23ac331da26e4c1bf9c956894 /cmake
parent45d4e4b06cef17f4bd4a2a926299b8ccb0f2267f (diff)
CMake: Support -static, -shared and -framework configure arguments
Task-number: QTBUG-85373 Change-Id: I0a1db7dcb4cb1738fa1ba0a687d41c5f5a613364 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtProcessConfigureArgs.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake
index 1a2dff080f..9a205a5559 100644
--- a/cmake/QtProcessConfigureArgs.cmake
+++ b/cmake/QtProcessConfigureArgs.cmake
@@ -114,6 +114,13 @@ while(configure_args)
set(build_configs Debug Release)
elseif(arg STREQUAL "-force-debug-info")
set(force_debug_info ON)
+ elseif(arg STREQUAL "-shared")
+ push("-DBUILD_SHARED_LIBS=ON")
+ elseif(arg STREQUAL "-static")
+ push("-DBUILD_SHARED_LIBS=OFF")
+ elseif(arg MATCHES "^-(no-)?framework")
+ calculate_state()
+ push("-DFEATURE_framework=${state}")
elseif(arg STREQUAL "--")
# Everything after this argument will be passed to CMake verbatim.
push(${configure_args})