[CMake] How to force CMake to generate a makefile that compiles with debugging information (-g)

Bill Hoffman bill.hoffman at kitware.com
Sun Apr 20 18:06:32 EDT 2008


Dario Figueira wrote:
> The title pretty much sums it;
> I can't seem to get a straight anwser from the CMake manual.. :S
> And the "make" generated does not have an option to compile with 
> debugging informations :|
> 
> Any hints? Am i missing something terribly obvious?
> 
> Thank you in advance,
> 

Set CMAKE_BUILD_TYPE to Debug.

-Bill


More information about the CMake mailing list