CMake is complaining about the "^" regex if the prefixes are empty strings.
mentioned in commit f5fd8a37