From 9f1a4ee3f95a5281c5fdfd392344d76813eb8260 Mon Sep 17 00:00:00 2001 From: Markus Blatt <markus@dr-blatt.de> Date: Tue, 11 Jun 2013 20:53:44 +0200 Subject: [PATCH] [dunecontrol][CMake] Support quoting flags with single quotes during conversion. --- bin/dunecontrol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dunecontrol b/bin/dunecontrol index 448a6976f..203d048d5 100755 --- a/bin/dunecontrol +++ b/bin/dunecontrol @@ -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 -- GitLab