[CMake] Multiple build types at one go

Marcin Gil marcin.gil at gmail.com
Thu Jan 4 11:34:54 EST 2007


Dnia czwartek, 4 stycznia 2007 16:11, Alexander Neundorf napisał:
> > > 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 :-)
>
Done here
http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_build_multiple_modes_without_switching_.3F

If you find this entry not so good in terms of style, point it out and I'll 
correct it.

Thanks!
-Marcin


More information about the CMake mailing list