I&#39;m not sure why it&#39;s not working for you... sounds like a bug.<br><br>As a workaround, you could pass in the initial values with -D on the cmake or ccmake command line.<br><br>Are you using CMake 2.4.6 or 2.4.7 or something earlier...?
<br><br><div><span class="gmail_quote">On 6/13/07, <b class="gmail_sendername">Vitor Vasconcelos Araujo Silva</b> &lt;<a href="mailto:vasconcv@loria.fr">vasconcv@loria.fr</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;">
<br>&gt; This line:<br>&gt; SET (CMAKE_BUILD_TYPE &quot;Release&quot; CACHE TYPE STRING)<br>&gt;<br>&gt; should be:<br>&gt; SET (CMAKE_BUILD_TYPE &quot;Release&quot; CACHE STRING &quot;documentation string here&quot;)<br>
&gt;<br>&gt; You are trying to specify &quot;TYPE&quot; as the type of the varibale....<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thanks David,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yes, I fell stupid to let pass a mistake like this, but it happens more<br>than should...
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;But the main problem continues: the value of this variable is not set<br>in the first &quot;ccmake&quot; command. And it only happens in Linux. When I run<br>the same code in Cmake Windows (building Visual Studio or MingW) it works*.
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* Not completely: in Visual Studio the CMAKE_BUILD_TYPE is set, but I<br>can not set the CMAKE_CONFIGURATION_FILES only to Release...<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Anyway, thanks for your answer with this correction.<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vitor<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>