[CMake] Multiple configurations in a single target?

Sylvain Benner benner at virtools.com
Mon Dec 10 11:31:43 EST 2007


> Hi
>
> A single VS .vcproj file can have both debug and release configurations.
> How can I produce that sort of project file with CMake?
> Would calling CMake twice, setting CMAKE_BUILD_TYPE differently each 
> time, do the magic?
Hi,

I don't understand your question, by default CMake generates .vcproj 
files with the following configurations: 
Debug;Release;MinSizeRel;RelWithDebInfo
So you don't have to do anything to get them into your Visual Studio 
project.

--Sylvain


More information about the CMake mailing list