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
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to