CMake Nightly Date Stamp
CMake Nightly Date Stamp
clean up usage of if(... MATCHES regex) followed string(REGEX REPLACE regex)

The matches have already been calculated and can simply be taken from
CMAKE_MATCH_n variables. This avoids multiple compilations of the same or very
similar regular expressions.
replace string(REGEX REPLACE) with string(REPLACE) where possible

The simple replacement is much faster.
Merge topic 'matches-cleanup' into next

3f6d6e35 replace string(REGEX REPLACE) with string(REPLACE) where possible
462d954a clean up usage of if(... MATCHES regex) followed string(REGEX REPLACE regex)
e6aace96 CMake Nightly Date Stamp
d5a32737 CMake Nightly Date Stamp