From d10508b76095bcb78cf7cc8d11221fb1ffe50deb Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Wed, 23 Oct 2013 09:19:52 +0200 Subject: [PATCH] Only add option for shared libraries once The way the test was done previously, it was added for *every* option after `--enable-shared`, not only that one. --- cmake/Scripts/configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/Scripts/configure b/cmake/Scripts/configure index e1c04de0..29e3e5d0 100755 --- a/cmake/Scripts/configure +++ b/cmake/Scripts/configure @@ -424,6 +424,8 @@ for OPT in "$@"; do esac test -n "${shared}" && \ FEATURES="${FEATURES} -DBUILD_SHARED_LIBS:BOOL=${shared}" + # once we have added this, reset so we don't add again for next opt + shared="" ;; *) # remove everything *after* the equal sign