Skip to content
Snippets Groups Projects
Commit 9f1a4ee3 authored by Markus Blatt's avatar Markus Blatt
Browse files

[dunecontrol][CMake] Support quoting flags with single quotes during conversion.

parent e9e2e46c
No related branches found
No related tags found
No related merge requests found
......@@ -573,7 +573,7 @@ run_default_configure () {
# such that they are honored by cmake.
flags="CXX CC CXXFLAGS CFLAGS CPPFLAGS LDFLAGS F77 FFLAGS FLIBS FC FCFLAGS FCLIBS LIBS"
for i in $flags; do
cflags=`echo $PARAMS | sed "s/.*\($i=\"[^\"]*\"\|$i=[^\s^ ]*\).*/\1/"`
cflags=`echo $PARAMS | sed "s/.*\($i=\"[^\"]*\"\|$i='[^']*'\|$i=[^\s^ ]*\).*/\1/"`
if test "$cflags" != "$PARAMS"; then
PREPARAMS="$PREPARAMS $cflags"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment