[CMake] version number parsing

James Bigler bigler at cs.utah.edu
Fri Sep 21 15:18:39 EDT 2007


Is there an example I could look at to parse out the individual version numbers, 
once I get this string?

STRING(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" version-string ${output})

I want to be able to get the three integers out of version-string.

Thanks,
James


More information about the CMake mailing list