mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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.
This commit is contained in:
parent
c06a79f30b
commit
cb89621813
2
cmake/Scripts/configure
vendored
2
cmake/Scripts/configure
vendored
@ -424,6 +424,8 @@ for OPT in "$@"; do
|
|||||||
esac
|
esac
|
||||||
test -n "${shared}" && \
|
test -n "${shared}" && \
|
||||||
FEATURES="${FEATURES} -DBUILD_SHARED_LIBS:BOOL=${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
|
# remove everything *after* the equal sign
|
||||||
|
Loading…
Reference in New Issue
Block a user