Feature Request: Genex: Add $<STRMATCH:string,regex>
Currently, CMake does not provide a generator expression to test strings based on regexes.
Adding such a generator expression would make it possible to turn stuff like this...
if(CMAKE_GENERATOR MATCHES "Visual Studio")
target_compile_options(target
INTERFACE
/MP
)
endif()
...into a something like this:
target_compile_options(target
INTERFACE
$<$<STRMATCH:${CMAKE_GENERATOR},"Visual Studio">:/MP>
)
STREQUAL
is just too restrictive for such use cases.