[CMake] build types
Andreas Pakulat
apaku at gmx.de
Sun Sep 23 12:00:58 EDT 2007
On 23.09.07 17:34:34, Christian Buhtz wrote:
> I read the docs and the wiki and the faq.
> I know that I can specify build types but I didn't understand it right.
>
> How can I realize to build project as debug and/or release?
>
> How do I have to call cmake to generate a gnu-makefile that I can use like
> this:
You can't. You specify the build type during cmake-time, using
-DCMAKE_BUILD_TYPE=Debug|Release|... And thats quite ok, because you
need different directories for the targets and the intermediate object
files anyway as those differ between release and debug. So its not a
problem to have
builddir/debug
builddir/release
and call cmake in each one using the right build type.
Andreas
--
Your supervisor is thinking about you.
More information about the CMake
mailing list