[CMake] Selecting debug builds on linux after generating make files via cmake

Philip Lowman philip at yhbt.com
Tue Apr 14 21:16:40 EDT 2009


cmake -DCMAKE_BUILD_TYPE=Debug

Alternatively set it in the cache editor with ccmake or cmake-gui.

On Tue, Apr 14, 2009 at 6:07 PM, Jan Neumann <jankneumann at gmail.com> wrote:

> Hi,
>
> I have been using cmake for years on the windows platform with great
> success, but now I need to do cross-platform development including linux and
> ran into the problem that I cannot figure out how to select a build
> configuration that embeds debugging symbols in my libraries and executables.
>
> I am generating project files for Eclipse or KDevelop (the current versions
> on Fedora 10) using the newest Cmake 2.6.3 and everything compiles fine. But
> any target that I choose for building does not generate debugging symbols.
> Do i need to configure something during the cmake generation process (I am
> currently using nearly identical build commands for windows and linux) to be
> able to generate targets that build executables with debug information or is
> there a more global switch in the IDE that I need to find to make the debug
> builds visible?
>
> Thanks for any advice,
>
> Jan
>
> _______________________________________________
> 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/20090414/83351e48/attachment.htm>


More information about the CMake mailing list