The space has no special meaning in regular expressions so it doesn't need to be escaped.
The orginal patch has been reworked in order to follow CMake source tree layout habit. Inspired-By: Igor Murzov <e-mail@date.by>