[CMake] make debug

Bill Hoffman bill.hoffman at kitware.com
Tue Feb 13 10:48:16 EST 2007


Hector Franco Penya wrote:
> Hi
> I´m a beginner in CMake
> I´m trying to find the way to write the CMakeLists.txt files for
> permit use a "make debug" later?
> I find in the cmake book a lot of flags variables, but i don´t know
> how to make cmake behave different when you type "make all" and when
> you type "make debug"
>
You set the CMAKE_BUIDL_TYPE to Debug, and run make to get a debug build.
There is no make debug.
> and if is possible:
> Are something like "cmake clean"???
There is a make clean.

There is also a make help, this will list all available targets.


-Bill




More information about the CMake mailing list