<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")<br>
else()<br>
   ... do something ...<br>
endif()<br></blockquote></span></blockquote><br></div><div class="gmail_quote">While you may need the empty if condition for something else, in this use case specifically you could just as easily avoid the empty conditional block and negate the expression with:<br><span style="font-family:monospace,monospace"><br></span></div><div class="gmail_quote"><span style="font-family:monospace,monospace">if(NOT CMAKE_SYSTEM_NAME MATCHES "Windows")<br></span></div><div class="gmail_quote"><span style="font-family:monospace,monospace">  ... do something ...<br></span></div><div class="gmail_quote"><span style="font-family:monospace,monospace">endif()</span><br><br></div><div class="gmail_quote">- Chuck<br></div></div></div>