diff --git a/build/update-setup-h b/build/update-setup-h index 7154bb4c68..5f8b05c3dd 100755 --- a/build/update-setup-h +++ b/build/update-setup-h @@ -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