[CMake] How to assign data from subexpressions of regular expressions to CMake variables?

Tyler Roscoe tyler at cryptio.net
Thu Jan 20 14:43:02 EST 2011


On Thu, Jan 20, 2011 at 02:06:33PM +0100, Michael Wild wrote:
> Ah, yes. I keep forgetting. Might I propose that the documentation about
> regular expressions be extracted into its own section and then be
> referenced from all commands that have a REGEX mode? Because,
> confusingly, the only documentation about regular expression is at the
> end of the string(REGEX REPLACE) command, but then uses if(... MATCHES
> ...) as an example. For the reader of the if( MATCHES ) documentation,
> this isn't very discoverable, it doesn't even refer him to the
> string(REGEX REPLACE) command.

Not that I'm signing up for this job, but +1 on this suggestion.

tyler


More information about the CMake mailing list