[CMake] Cache variables - problem persists

Vitor Vasconcelos Araujo Silva vasconcv at loria.fr
Wed Jun 13 06:11:09 EDT 2007


> 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


More information about the CMake mailing list