<div dir="ltr"><div>Am I missing something, or is the following result surprising to others as well:</div><div><br></div><div><font face="monospace, monospace">set(somevar YES)</font></div><div><font face="monospace, monospace">if ("somevar")</font></div><div><font face="monospace, monospace">    message("Get here if CMP0054 is OLD (seems okay)")</font></div><div><span style="font-family:monospace,monospace">else()</span><br></div><div><font face="monospace, monospace">    message("Get here if CMP0054 is NEW (surprising?)")</font></div><div><span style="font-family:monospace,monospace">endif()</span><br></div><div><br></div><div>I would have thought that even with CMP0054 being NEW, the if condition would still evaluate to true since it is going to test a non-empty string that doesn't match any of the defined false constants.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="https://crascit.com" target="_blank">https://crascit.com</a><br></div></div></div></div></div></div></div>
</div>