On Tue, Jun 2, 2009 at 3:54 PM, Tyler Roscoe <ty...@cryptio.net> wrote:
> We build the Release versions of our libraries with Debug info enabled.
>
> In Visual Studio, you enable this by setting
> Properties->Linker->Debugging->Generate Debug Info to Yes.
>
> All this really does is add /DEBUG to the link flags for the library.
>
> So I added "/DEBUG" to the LINK_FLAGS_RELEASE property for that library.
> This does the right thing, and objdump verifies that the libraries are
> generated correctly.
>
> The trouble is that setting this flag doesn't update the dropdown box in
> Properties->Linker->Debugging. Some diffing shows that selecting Yes in
> the dropdown sets a flag in the .vcproj,
> GenerateDebugInformation="true".
>
> Is there a way to set this flag from CMake? A developer could get
> confused and think debug info is not being generated even though it
> really is.
>
> Maybe the VS Generator could change the GenerateDebugInformation flag if
> /DEBUG is present in the link flags?
>

How about using the RelWithDebInfo build that CMake generates?

John
_______________________________________________
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

Reply via email to