MantisBT - CMake
View Issue Details
0010694CMakeModulespublic2010-05-09 11:552016-06-10 14:31
Modestas Vainius 
Miguel Figueroa 
normalminoralways
closedmoved 
amd64Debian GNU/Linuxsid
CMake-2-8 
 
0010694: FindwxWidgets.cmake doesn't support specifying a wxwidgets version.
Original bug report at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493460 [^]
It was reported against 2.6 but as far as I can tell, it still applies to 2.8.1/master. In short:

It isn't possible:
 - to specify which wx version should be found,
 - or to check which wx version has been found,
 - or to specify which wx-config program to run.
I believe it should be pretty easy to support find_package(wxWdigets <version>) given the information provided by reporter. I pasted it below. Full original report is at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493460 [^]

Some suggestions by reporter:

 - providing with an additional _FOUND_VERSION or _FOUND_RELEASE
   variable so that one can at least check which version has been picked
   up. That might be done by calling using $(wx-config --release).
 - supporting forcing the version to something user-specified. That can
   be achieved by using the wx-config --version parameter. Examples for
   that below.
 - if the previous one isn't acceptable (although I found it quite
   elegant), it'd be nice to be able to specifying a PATH for wx-config,
   so that one can determine it in debian/rules, and inject it in a
   CMakeLists.txt file.

Examples of --version use:
| kibi@waity:~$ wx-config --version
| 2.6.3
| kibi@waity:~$ wx-config --release
| 2.6
| kibi@waity:~$ wx-config --version=2.6 --version
| 2.6.3
| kibi@waity:~$ wx-config --version=2.6 --release
| 2.6
| kibi@waity:~$ wx-config --version=2.8 --version
| 2.8.7
| kibi@waity:~$ wx-config --version=2.8 --release
| 2.8
No tags attached.
Issue History
2010-05-09 11:55Modestas VainiusNew Issue
2010-05-09 14:00Miguel FigueroaStatusnew => assigned
2010-05-09 14:00Miguel FigueroaAssigned To => Miguel Figueroa
2013-10-16 07:03karolherbstNote Added: 0034132
2016-06-10 14:27Kitware RobotNote Added: 0041694
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0034132)
karolherbst   
2013-10-16 07:03   
What is the status here? Desurium has the same problem. If nobody wants to fix that, I could do that.
(0041694)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.