summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2020-06-09 03:02:09 +0200
committerDimitrios Apostolou <jimis@qt.io>2020-06-27 02:58:08 +0200
commite3fe8524ed05414229712099340b128644fa0f07 (patch)
treeab916e3826eb4f48ebc9ab1ac30bc007c84e483a /configure
parentab1e0961d4718fb5e36e22c3b70dd98e776e0edd (diff)
Fix -system-library and -qt-library arguments for configure -cmake
Change-Id: Ief19f2e8cb2996b7d09e2354328d30a67ad801fd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 3426673d42..563af63626 100755
--- a/configure
+++ b/configure
@@ -161,6 +161,16 @@ $i"
CMAKE_CMDLINE="$CMAKE_CMDLINE
-DFEATURE_${VAR}=OFF"
;;
+ -system-*|--system-*)
+ VAR=`echo $i | sed -E 's/-?-system-(.*)/\1/'`
+ CMAKE_CMDLINE="$CMAKE_CMDLINE
+-DFEATURE_system_${VAR}=ON"
+ ;;
+ -qt-*|--qt-*)
+ VAR=`echo $i | sed -E 's/-?-qt-(.*)/\1/'`
+ CMAKE_CMDLINE="$CMAKE_CMDLINE
+-DFEATURE_system_${VAR}=OFF"
+ ;;
--sanitize=*)
VAR=`echo $i | sed 's,^--sanitize=\(.*\),\1,'`
CMAKE_CMDLINE="$CMAKE_CMDLINE