I see that support for versioned wx-config has started in cmake-3.3.0
as can be seen from the following diff against an older version.

--- cmake-3.2.3/Modules/FindwxWidgets.cmake     2015-06-01 08:56:08.000000000 
-0700
+++ cmake-3.3.0-rc1/Modules/FindwxWidgets.cmake 2015-06-04 07:53:42.000000000 
-0700
@@ -740,7 +740,7 @@
     # UNIX: Start actual work.
     #-----------------------------------------------------------------
     # Support cross-compiling, only search in the target platform.
-    find_program(wxWidgets_CONFIG_EXECUTABLE wx-config
+    find_program(wxWidgets_CONFIG_EXECUTABLE wx-config wx-config-3.0
       DOC "Location of wxWidgets library configuration provider binary 
(wx-config)."
       ONLY_CMAKE_FIND_ROOT_PATH
       )

However, that change does not go for enough.  In particular, Cygwin right now
uses wx-config-2.8 in their wxwidgets-2.8 package.  And I presume others
require wxwidgets-2.9 (as can be seen from other versioned bits of
FindwxWidgets.cmake).  Finally, the usual CMake philosophy for finding order
is most specific first (in descending order of versions) then generic.

So I recommend for 3.3.0 final the above list of

wx-config wx-config-3.0

be changed to

wx-config-3.0 wx-config-2.9 wx-config-2.8 wx-config

I could transform this into an official change request, but it is such
a no-brainer I hope I don't have to go through that process to get
this into cmake-3.3.0

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to