[CMake] Can't get cmake to do debug build with wxwidgets

Joseph Garvin k04jg02 at gmail.com
Fri Nov 30 12:43:42 EST 2007


Under windows, everything works fine. However, trying to build my project on
Linux, I think that cmake isn't properly setting up linking against the
debug versions of the wxwidgets libraries. wxWidgets has a function,
wxLogDebug, that prints text in debug mode but does nothing in release mode.
Even if I run cmake in wizard mode and tell it to only build Debug mode,
wxLogDebug does not print anything in my app. I've double checked that I
have the debug libraries installed, and I don't get any error messages. I'm
using FIND_PACKAGE(wxWidgets), and TARGET_LINK_LIBRARIES(myapp
${wxWidgets_LIBRARIES}). Any ideas? Using Cmake v2.4 - patch7 running on
Ubuntu against wxWidgets 2.8.4.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071130/6dd30c2a/attachment.html


More information about the CMake mailing list