MantisBT - CMake
View Issue Details
0015540CMakeModulespublic2015-04-29 12:112015-11-02 09:13
Orion Poplawski 
Brad King 
normalminoralways
closedfixed 
LinuxFedora22
CMake 3.2.2 
CMake 3.3CMake 3.3 
0015540: FindwxWidgets does not find wxWidgets 3.0 on Fedora
Can't build anything that requires wxWidgets 3.0, because FindwxWidgets.cmake uses wx-config instead of wx-config-3.0. The attached patch should fix.
No tags attached.
patch cmake-wxWidgets.patch (628) 2015-04-29 12:11
https://public.kitware.com/Bug/file/5442/cmake-wxWidgets.patch
Issue History
2015-04-29 12:11Orion PoplawskiNew Issue
2015-04-29 12:11Orion PoplawskiFile Added: cmake-wxWidgets.patch
2015-04-29 12:52Brad KingNote Added: 0038639
2015-04-29 12:52Brad KingAssigned To => Brad King
2015-04-29 12:52Brad KingStatusnew => resolved
2015-04-29 12:52Brad KingResolutionopen => fixed
2015-04-29 12:52Brad KingFixed in Version => CMake 3.3
2015-04-29 12:52Brad KingTarget Version => CMake 3.3
2015-04-29 12:58Orion PoplawskiNote Added: 0038640
2015-04-29 13:04Brad KingNote Added: 0038641
2015-11-02 09:13Robert MaynardNote Added: 0039795
2015-11-02 09:13Robert MaynardStatusresolved => closed

Notes
(0038639)
Brad King   
2015-04-29 12:52   
Thanks. I applied it with the order switched:

 FindwxWidgets: Search for wx-config-3.0 in addition to wx-config
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1b04561e [^]

We need to search for the unversioned executable name first in case the user has one earlier in their PATH.
(0038640)
Orion Poplawski   
2015-04-29 12:58   
Hmm, I guess I was assuming the case in Fedora where both wxGTK-devel and wxGTK3-devel where installed, and we would want to prefer wxGTK3. But at least for most rpm builds probably only one will be installed.
(0038641)
Brad King   
2015-04-29 13:04   
Re 0015540:0038640: If you want to force a specific version when packaging then add -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-3.0 on the command line of the dependent project's build script.
(0039795)
Robert Maynard   
2015-11-02 09:13   
Closing resolved issues that have not been updated in more than 4 months.