Merge topic 'FindwxWidgets-versioned-executable'

2c969743 FindwxWidgets: Fix find_program call for versioned names
This commit is contained in:
Brad King 2015-06-09 09:18:40 -04:00 committed by CMake Topic Stage
commit 5a5a81e550
1 changed files with 2 additions and 1 deletions

View File

@ -740,7 +740,8 @@ else()
# UNIX: Start actual work.
#-----------------------------------------------------------------
# Support cross-compiling, only search in the target platform.
find_program(wxWidgets_CONFIG_EXECUTABLE wx-config wx-config-3.0
find_program(wxWidgets_CONFIG_EXECUTABLE
NAMES wx-config wx-config-3.0 wx-config-2.9 wx-config-2.8
DOC "Location of wxWidgets library configuration provider binary (wx-config)."
ONLY_CMAKE_FIND_ROOT_PATH
)