diff options
author | Adriaan de Groot <groot@kde.org> | 2020-10-07 13:36:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-07 14:11:18 (GMT) |
commit | 1fe5abb47fd78d7ac835def3d58e4dbcc68500c6 (patch) | |
tree | 3561147737e2e38893aa4ff0086f55b6d19f541f /Modules/FindwxWidgets.cmake | |
parent | a0964cbe63d0e9c2308a8b5d76e523341fb145e1 (diff) | |
download | CMake-1fe5abb47fd78d7ac835def3d58e4dbcc68500c6.zip CMake-1fe5abb47fd78d7ac835def3d58e4dbcc68500c6.tar.gz CMake-1fe5abb47fd78d7ac835def3d58e4dbcc68500c6.tar.bz2 |
FindwxWidgets: Expand list of names for wx-config
This looks for the FreeBSD-packaging names of wx-config as well.
Fixes: #19372
Diffstat (limited to 'Modules/FindwxWidgets.cmake')
-rw-r--r-- | Modules/FindwxWidgets.cmake | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake index 93ac51d..eab09f1 100644 --- a/Modules/FindwxWidgets.cmake +++ b/Modules/FindwxWidgets.cmake @@ -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 ) |