[CMake] CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE_INIT ...

Eric BOIX eboix at ens-lyon.fr
Wed Apr 5 08:19:05 EDT 2006


	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 ?

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 ?

	Respectfuly yours,
	Eric Boix.


More information about the CMake mailing list