[CMake] Can't get cmake to do debug build with wxwidgets
Miguel A. Figueroa-Villanueva
miguelf at ieee.org
Sat Dec 1 11:38:57 EST 2007
On Nov 30, 2007 1:43 PM, 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.
Can you provide the CMakeLists.txt and CMakeCache.txt files?
You must be doing something else because just:
FIND_PACKAGE(wxWidgets) should not
TARGET_LINK_LIBRARIES(myapp ${wxWidgets_LIBRARIES})
won't work. You need to specify the modules you want to link with and
posibly make use of the UsewxWidgets.cmake file, although I don't use
it.
--Miguel
More information about the CMake
mailing list