Creating new configurations for MSVC
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Original description:
Although the documentations explains how to define a new configuration (called Maintener), in MSVC this doesn't work as one can't extend CMAKE_CONFIGURATION_TYPES. I would like to request a feature so that new configurations would be allowed to be defined for MSVC.
Discussion:
Tal Blum (reporter):
Some people on the mailing list suggested how to fix the code so that it would be possible to add a new configuration. There is however more than that to configurations in MSVC. In my group each project has it's own configurations and there is also a mapping between global configurations and model configurations. For example in my project when choose a global English_Release configuration, some libraries my be compiled under a Release configuration. I am not sure you want to implement this, but I thought I should mention that.
Paris:
We deeply need that feature as well.
I have tried something from the FAQ: http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_specify_my_own_configurations_.28for_generators_that_allow_it.29_.3F [^]
This does not work. When trying to change the CMAKE_CONFIGURATION_TYPES to only Debug;Release, the cache is not properly updated and keep the old values: Debug;Release;MinSizeRel;RelWithDebInfo
System: Win 7 Pro IDE: VS9
Jonathan M Davis:
Is there a technical reason why this hasn't been implemented yet, or is it just that no one has gotten around to working on it?
nomorgan:
A workaround here : http://www.cmake.org/pipermail/cmake/2012-January/048856.html