[CMake] Multiple build types at one go

Alexander Neundorf a.neundorf-work at gmx.net
Thu Jan 4 10:11:07 EST 2007


Von: "Marcin Gil" <marcin.gil at gmail.com>

> On 1/4/07, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> >
> >
> > You could setup two out-of-source buildtrees and compile each with a
> > different buildtype. Is this good enough ?
> 
> 
> Hmm.. never thought of this. So my layout would be
> 
> build/
>   /debug
>   /release
> 
> go in both directories in build and issue cmake -DCMAKE_BUILD_TYPE=Debug
> -G "NMake Makefiles" path/to/source/tree and with type Release
> respectively.
> Yes?

Yes.
It would be cool if you could add a note about this in the CMake Wiki: http://www.cmake.org/Wiki/CMake :-)

Bye
Alex

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the CMake mailing list