Merge topic 'FindwxWidgets-freebsd'

1fe5abb47f FindwxWidgets: Expand list of names for wx-config

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5342
This commit is contained in:
Brad King
2020-10-08 12:09:55 +00:00
committed by Kitware Robot

View File

@@ -760,8 +760,16 @@ else()
# UNIX: Start actual work.
#-----------------------------------------------------------------
# Support cross-compiling, only search in the target platform.
#
# Look for wx-config -- this can be set in the environment,
# or try versioned and toolchain-versioned variants of the -config
# executable as well.
find_program(wxWidgets_CONFIG_EXECUTABLE
NAMES $ENV{WX_CONFIG} wx-config wx-config-3.1 wx-config-3.0 wx-config-2.9 wx-config-2.8
NAMES
$ENV{WX_CONFIG}
wx-config
wx-config-3.1 wx-config-3.0 wx-config-2.9 wx-config-2.8
wxgtk3u-3.1-config wxgtk3u-3.0-config wxgtk2u-2.8-config
DOC "Location of wxWidgets library configuration provider binary (wx-config)."
ONLY_CMAKE_FIND_ROOT_PATH
)