[CMake] Regex Matching

Andrew Bell andrew.bell.ia at gmail.com
Wed Aug 23 16:21:17 EDT 2017


Hi,

Can someone please explain the cmake regex matching rules?

The following returns true:

if ("This is a test" MATCHES "test")

I would have expected to have needed something like this to get a match:

if ("This is a test" MATCHES ".*test")

Does cmake always search for a subexpression?  Is there some way to prevent
this behaivor?

Thanks,

-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170823/ca290c31/attachment.html>


More information about the CMake mailing list