This line:<br>SET (CMAKE_BUILD_TYPE &quot;Release&quot; CACHE TYPE STRING)<br><br>should be:<br>SET (CMAKE_BUILD_TYPE &quot;Release&quot; CACHE STRING &quot;documentation string here&quot;)<br><br>You are trying to specify &quot;TYPE&quot; as the type of the varibale....
<br><br><br>HTH,<br>David<br><br><br><br><div><span class="gmail_quote">On 6/12/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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hi all,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I&#39;m having a strange problem with my variables. In the root of my
<br>project (that builds two libs and few executables), I have those<br>definitions:<br><br>SET (CMAKE_BUILD_TYPE &quot;Release&quot; CACHE TYPE STRING)<br><br>IF (WIN32)<br>&nbsp;&nbsp; # WARNING: The configuration type only works for make based generators.
<br>&nbsp;&nbsp; SET(CMAKE_CONFIGURATION_TYPES &quot;Release&quot; CACHE STRING<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;The Windows version is built only in RELEASE version&quot; FORCE)<br>&nbsp;&nbsp; SET(CMAKE_CXX_WARNING_LEVEL &quot;0&quot; CACHE STRING &quot;No WARNINGS on
<br>Windows&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FORCE)<br>ENDIF(WIN32)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When I execute it on Linux, everything goes fine, except the<br>CMAKE_BUILD_TYPE variable remains untouched.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On Windows, this variable is set! (and I don&#39;t need it). But the
<br>stranger is: the CMAKE_CONFIGURATION_TYPES is kept with all possible<br>configurations (the default, I suppose), even with the FORCE parameter.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;However, the CMAKE_CXX_WARNING_LEVEL is set to zero correctly.
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Anybody has a clue about this? I always bet I can be doing something<br>wrong. But, what?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thanks a lot,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vitor<br><br>p.s.: I&#39;m using Cmake 2.4 patch 3<br><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>