[CMake] CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE_INIT ...

Brad King brad.king at kitware.com
Wed Apr 5 09:24:37 EDT 2006


Eric BOIX wrote:
> 	Dear Brad King,
> 
> Quoting Brad King <brad.king at kitware.com>:
> 
>>To get options in the GUI they need to be cache settings.  Use the CACHE 
>>form of the SET command.
>>
>>IF(NOT CMAKE_BUILD_TYPE)
>>  SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
>>      "Build Configuration")
>>ENDIF(NOT CMAKE_BUILD_TYPE)
> 
> 
> I had to add the FORCE flag in order to see the result appear in the GUIs.
> I hope this is ok ?

Yes, I meant to include that in the example.

> May I abuse and ask again about some hints on the *_INIT cmake variables
> (e.g. CMAKE_CXX_FLAGS_DEBUG_INIT ) and their proper usage ?

These are implementation details in the CMake modules.  They should not 
be used directly.

-Brad


More information about the CMake mailing list