I agree that they should follow a consistent style, but an attempt at backwards compatibility should be made.  Those variables are hard set in many people&#39;s ExternalProject&#39;s, build scripts, etc.<br><br>Matt<br><br>
<div class="gmail_quote">On Tue, Dec 18, 2012 at 4:25 PM, Williams, Norman K <span dir="ltr">&lt;<a href="mailto:norman-k-williams@uiowa.edu" target="_blank">norman-k-williams@uiowa.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think you&#39;re exactly right.  Those variables are named the way they are<br>
because when I chose those names USE_&lt;something&gt; names were all over the<br>
place. As we&#39;ve all progressed as developers and refined the conventions<br>
used in ITK, things like that have gone away.<br>
<br>
<br>
I see no reason not to change this to make it consistent.  As far as<br>
&#39;backwards compatibility&#39; -- we promise code compatibility not CMake<br>
compatibility.  Since FFTW is not on by default, someone has to go looking<br>
when they run CMake for the FFTW variables to turn on. They&#39;ll find them<br>
whether they&#39;re properly prefixed ITK_ or not.<br>
<br>
And that little snippet of CMake code is something I never thought about.<br>
CMake programming sure can be powerful.  At this point we could probably<br>
re-write ITK in CMake.<br>
<div><div class="h5"><br>
On 12/18/12 9:38 AM, &quot;Bradley Lowekamp&quot; &lt;<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>&gt; wrote:<br>
<br>
&gt;Hello,<br>
&gt;<br>
&gt;I was looking to pass some CMake variable from my SimpleITK superbuild<br>
&gt;down to the ITK external project build. So I assembled a list for cmake<br>
&gt;varaibles that began with &quot;ITK_&quot;:<br>
&gt;<br>
&gt;get_cmake_property( _varNames VARIABLES )<br>
&gt;<br>
&gt;foreach (_varName ${_varNames})<br>
&gt;  if(_varName MATCHES &quot;^ITK_&quot; )<br>
&gt;    message( &quot;Variable defined ${_varName}: ${${_varName}}&quot;)<br>
&gt;    list(APPEND ITK_VARS ${_varName})<br>
&gt;  endif()<br>
&gt;endforeach()<br>
&gt;<br>
&gt;<br>
&gt;And passed to those to my ITK external project. While these ITK cmake<br>
&gt;variables are not defined in the top level, a user could base say<br>
&gt;&quot;-DITK_USE_SYSTEM_TIFF:BOOL=ON&quot; to the top level superbuild, and ITK<br>
&gt;would be configured and build with this user specified option. (This will<br>
&gt;get a lot more interesting when enabling module could also be passes.)<br>
&gt;<br>
&gt;Only problem is that the FFTW cmake variables don&#39;t match. These are the<br>
&gt;ones I am talking about:<br>
&gt;<br>
&gt;USE_SYSTEM_FFTW<br>
&gt;USE_FFTWD<br>
&gt;USE_FFTWF<br>
&gt;<br>
&gt;I think that these variable should begin with ITK to match the reset of<br>
&gt;the similar variable in ITK.<br>
&gt;<br>
&gt;Does anyone else have an opinion on this?<br>
&gt;<br>
&gt;<br>
&gt;Thanks,<br>
&gt;Brad<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt;Visit other Kitware open-source projects at<br>
&gt;<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt;Kitware offers ITK Training Courses, for more information visit:<br>
&gt;<a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
&gt;<br>
&gt;Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt;Follow this link to subscribe/unsubscribe:<br>
&gt;<a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
<br>
<br>
<br>
</div></div>________________________________<br>
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.<br>

________________________________<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
</div></div></blockquote></div><br>