MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0008993 | CMake | Modules | public | 2009-05-10 04:08 | 2010-11-09 22:57 |
Reporter | user790 | ||||
Assigned To | Miguel Figueroa | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake-2-6 | ||||
Target Version | CMake 2.8.3 | Fixed in Version | CMake 2.8.3 | ||
Summary | 0008993: FindwxWidgets.cmake always uses default toolkit | ||||
Description | Here is a quote of the message I sent on the user list: <quote> I am trying to use CMake to configure a very simple project that uses wxWidgets, and I am running into a problem. The wxUSE_GUI flag is set to 0 in the Makefile generated by CMake and I therefore cannot use the GUI part of wxWidgets. Diving into FindwxWidgets.cmake, I see that compilation options are obtained through wx-config. Options to wx-config are based on only four flags that I can set or not in my CMakeLists.cmake, which are wxWidgets_USE_{DEBUG,UNICODE,UNIVERSAL,STATIC}. The problem is that on my Ubuntu 9.04, there are two wxWidgets configuration in /usr/lib/wx/config. One is base-unicode-debug-2.8, the other is gtk2-unicode-debug-2.8. The base configuration (which cannot be used for GUI building) is the default configuration. And unfortunately, I cannot discriminated both configurations with the four aforementionned parameters. I am able to differentiate them only with the "--toolkit" option of wx-config. But I cannot add this option to the wxWidgets_SELECT_OPTIONS variable of FindwxWidgets.cmake. What could be a work-around? I quickly browsed the wx-config script and it seems to me that the setting of 'base' as the default toolkit is more or less hard coded in it. </quote> On request of Miguel A. Figueroa-Villanueva, here is a command line that would return the correct configuration: wx-config --toolkit=gtk2 --cppflags A solution could be to add a wxWidgets_USE_TOOLKIT flag that would function just like the four others wxWidgets_USE_XXX flags, and that would enable the user to select whichever toolkit s/he wants from the set of installed ones. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | FindwxWidgets.diff (1,341) 2010-04-23 14:41 https://public.kitware.com/Bug/file/3062/FindwxWidgets.diff | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2009-05-10 04:08 | user790 | New Issue | |||
2009-05-12 09:24 | Miguel Figueroa | Status | new => assigned | ||
2009-05-12 09:24 | Miguel Figueroa | Assigned To | => Miguel Figueroa | ||
2010-04-23 14:40 | Andreas Mohr | Note Added: 0020380 | |||
2010-04-23 14:41 | Andreas Mohr | File Added: FindwxWidgets.diff | |||
2010-09-05 09:51 | Miguel Figueroa | Note Added: 0022093 | |||
2010-09-05 09:51 | Miguel Figueroa | Status | assigned => resolved | ||
2010-09-05 09:51 | Miguel Figueroa | Fixed in Version | => CMake 2.8.3 | ||
2010-09-05 09:51 | Miguel Figueroa | Resolution | open => fixed | ||
2010-09-09 23:49 | David Cole | Target Version | => CMake 2.8.3 | ||
2010-11-09 22:57 | Philip Lowman | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|