[CMake] Cache variables - problem persists

David Cole david.cole at kitware.com
Wed Jun 13 06:51:48 EDT 2007


I'm not sure why it's not working for you... sounds like a bug.

As a workaround, you could pass in the initial values with -D on the cmake
or ccmake command line.

Are you using CMake 2.4.6 or 2.4.7 or something earlier...?

On 6/13/07, Vitor Vasconcelos Araujo Silva <vasconcv at loria.fr> wrote:
>
>
> > This line:
> > SET (CMAKE_BUILD_TYPE "Release" CACHE TYPE STRING)
> >
> > should be:
> > SET (CMAKE_BUILD_TYPE "Release" CACHE STRING "documentation string
> here")
> >
> > You are trying to specify "TYPE" as the type of the varibale....
>
>         Thanks David,
>
>         Yes, I fell stupid to let pass a mistake like this, but it happens
> more
> than should...
>         But the main problem continues: the value of this variable is not
> set
> in the first "ccmake" command. And it only happens in Linux. When I run
> the same code in Cmake Windows (building Visual Studio or MingW) it
> works*.
>
>         * Not completely: in Visual Studio the CMAKE_BUILD_TYPE is set,
> but I
> can not set the CMAKE_CONFIGURATION_FILES only to Release...
>
>         Anyway, thanks for your answer with this correction.
>
>         Vitor
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070613/05b523c9/attachment.html


More information about the CMake mailing list