FindwxWidgets.cmake: Look for versioned wx-config scripts

This commit is contained in:
Simon Richter 2016-02-15 18:50:48 +01:00
parent bc480a010b
commit bbd0c539e9
1 changed files with 2 additions and 1 deletions

View File

@ -708,7 +708,8 @@ else()
# 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
NAMES wx-config wx-config-3.1 wx-config-3.0 wx-config-2.9 wx-config-2.8
ONLY_CMAKE_FIND_ROOT_PATH
)