Avoid trailing spaces in auto-generated build/cmake/setup.h.in

Tweak the sed command to ensure that "\1" in it refers only to the name
of the preprocessor symbol being defined, without all the spaces after
it.
This commit is contained in:
Vadim Zeitlin 2017-12-09 14:46:32 +01:00
parent c66c9c5ae6
commit bd6d22d890

View File

@ -43,7 +43,7 @@ cat_common_options_for()
# The setup.h.in template for cmake needs special processing
cmd="$cmd | sed -e '/^\/\//d' \
-e 's@ *//.*\$@@' \
-e 's/# *define \(.\+\) \+\(1\|0\) *\$/#cmakedefine01 \1/'"
-e 's/# *define \([^ ]\+\) \+\(1\|0\) *\$/#cmakedefine01 \1/'"
fi
eval $cmd