<br>Hi Motes,<br><br>In Windows you can not select the compilation mode from CMake.<br><br>You have to do it from inside Visual Studio, <br>after you load the ITK solution file, <br>by selecting the configuration mode.<br>
<br>What version of Visual Studio do you use ?<br><br><br>    Luis<br><br><br>---------------------------------------------------------------------------------------------<br><div class="gmail_quote">On Wed, Sep 9, 2009 at 10:29 AM, motes motes <span dir="ltr">&lt;<a href="mailto:mort.motes@gmail.com">mort.motes@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ok but how do I make a release build with cmake?<br>
<br>
After chosing &quot;Configure&quot; the only thing related to &quot;Release&quot; is:<br>
<br>
CMAKE_CXX_FLAGS_RELEASE       /MD /O2 /Ob2 /D NDEBUG<br>
<br>
I thought I could check it like &quot;Examples&quot; and &quot;Testing&quot;.<br>
<div class="im"><br>
<br>
<br>
On Wed, Sep 9, 2009 at 3:37 PM, John Drescher&lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt; wrote:<br>
</div><div><div></div><div class="h5">&gt;&gt; In Visual Studio you must select &quot;Release&quot; from the drop down box on<br>
&gt;&gt; the toolbar to perform an optimized compilation. Using a &quot;Release&quot;<br>
&gt;&gt; build can improve performance 10-200%.<br>
&gt;&gt;<br>
&gt;<br>
&gt; In my testing with a debug versus release (under visual studio) it is<br>
&gt; much worse than that in debug mode. I mean for a 3D median filter of a<br>
&gt; CT volume of 512x512x384. In release mode this completes in less than<br>
&gt; 30 seconds. In debug mode it takes around 30 minutes.<br>
&gt;<br>
&gt; John<br>
&gt;<br>
_____________________________________<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>
Please keep messages on-topic and check the ITK FAQ at: <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-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br>