views:

173

answers:

1

Hi,

I want to limit hard-coded CMAKE_CONFIGURATION_TYPES to RELEASE and DEBUG only. If I execute cmake GUI on Windows to create Visual Studio build, CMAKE_CONFIGURATION_TYPES is present along with other cmake variables.

How can I remove CMAKE_CONFIGURATION_TYPES from the GUI?

Thanks Dima

+1  A: 

Use the MARK_AS_ADVANCED command:

MARK_AS_ADVANCED( CMAKE_CONFIGURATION_TYPES )

Also, remember that in order to change the configuration types, you need to set it before the PROJECT() command.

JesperE
Thanks a lot :)
dimba