<div dir="ltr">Hi,<div><br></div><div>Can someone please explain the cmake regex matching rules?<br clear="all"><div><br></div><div>The following returns true:</div><div><br></div><div>if ("This is a test" MATCHES "test")<br></div><div><br></div><div>I would have expected to have needed something like this to get a match:</div><div><br></div><div>if ("This is a test" MATCHES ".*test")</div><div><br></div><div>Does cmake always search for a subexpression?  Is there some way to prevent this behaivor?</div><div><br></div><div>Thanks,</div><div><br></div><div>-- </div><div>Andrew Bell</div><div class="gmail_signature"><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div></div>