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:
@@ -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
|
||||
|
Reference in New Issue
Block a user