The intent is to use a construct that works even with older CMake versions such that the code enclosed in the construct only gets run on the first configure.<br><br>I&#39;m pretty sure it&#39;s only dangerous with variables that have dangerous names in the first place.
<br><br>Do you have a concrete example that is giving you problems?<br><br><div><span class="gmail_quote">On 11/13/07, <b class="gmail_sendername">Brandon Van Every</b> &lt;<a href="mailto:bvanevery@gmail.com">bvanevery@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I see the same construct in CHECK_INCLUDE_FILES.&nbsp;&nbsp;What is the intent?<br>
This is not safe.<br><br>Cheers,<br>Brandon Van Every<br><br><br>On Nov 7, 2007 11:38 AM, Brandon Van Every &lt;<a href="mailto:bvanevery@gmail.com">bvanevery@gmail.com</a>&gt; wrote:<br>&gt; It begins with:<br>&gt;<br>&gt; MACRO(CHECK_C_SOURCE_COMPILES SOURCE VAR)
<br>&gt;&nbsp;&nbsp; IF(&quot;${VAR}&quot; MATCHES &quot;^${VAR}$&quot;)<br>&gt;<br>&gt; What is the intent here?&nbsp;&nbsp;If ${VAR} contains regex special characters<br>&gt; you&#39;re going to get all kinds of weird and nasty behavior.<br>
&gt;<br>&gt;<br>&gt; Cheers,<br>&gt; Brandon Van Every<br>&gt;<br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">
http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>