[CMake] Building with debug information using Makefiles

Philip Lowman philip at yhbt.com
Fri Mar 6 01:10:05 EST 2009


If you're using CMAKE_BUILD_TYPE=Debug the debugging symbols should all be
there.

cmake -DCMAKE_BUILD_TYPE=Debug ..

On Thu, Mar 5, 2009 at 10:58 PM, Tron Thomas <tron.thomas at verizon.net>wrote:

> I am trying to use CMake to configure a cross platform project I'm
> developing.  On platforms that have IDE's such as Mac OS X and Windows, the
> configuration work fine in that programs can be built with debug information
> for development purposes.  On Linux, I am just using Makefiles and no
> specific IDE.  I find that when I configure the project, the built
> executable do not contain debug information unless I go into each target and
> add special case code to enable debug symbols for the Linux platform.
>
> How can I avoid having to specify debug information for each individual
> target when building with Makefiles?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090306/7a899822/attachment.htm>


More information about the CMake mailing list