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

James Bigler bigler at cs.utah.edu
Fri Nov 30 12:56:54 EST 2007


Joseph Garvin wrote:
> 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.

Are you defining the __WXDEBUG__ macro?  Without this, you won't get anything:

http://www.wxwidgets.org/manuals/2.8/wx_debugmacros.html

James


More information about the CMake mailing list