This line:<br>SET (CMAKE_BUILD_TYPE "Release" CACHE TYPE STRING)<br><br>should be:<br>SET (CMAKE_BUILD_TYPE "Release" CACHE STRING "documentation string here")<br><br>You are trying to specify "TYPE" 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> <<a href="mailto:vasconcv@loria.fr">vasconcv@loria.fr</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi all,<br><br> I'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 "Release" CACHE TYPE STRING)<br><br>IF (WIN32)<br> # WARNING: The configuration type only works for make based generators.
<br> SET(CMAKE_CONFIGURATION_TYPES "Release" CACHE STRING<br> "The Windows version is built only in RELEASE version" FORCE)<br> SET(CMAKE_CXX_WARNING_LEVEL "0" CACHE STRING "No WARNINGS on
<br>Windows" FORCE)<br>ENDIF(WIN32)<br><br> When I execute it on Linux, everything goes fine, except the<br>CMAKE_BUILD_TYPE variable remains untouched.<br><br> On Windows, this variable is set! (and I don'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> However, the CMAKE_CXX_WARNING_LEVEL is set to zero correctly.
<br><br> Anybody has a clue about this? I always bet I can be doing something<br>wrong. But, what?<br> Thanks a lot,<br><br> Vitor<br><br>p.s.: I'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>