From f5498a4660dc69b4c724e54a47d08614687978da Mon Sep 17 00:00:00 2001 From: Ganael Laplanche Date: Fri, 14 Oct 2022 11:55:55 +0200 Subject: [PATCH] Build: Fix build with wx 3.1 on FreeBSD (#7178) --- cmake/SearchForStuff.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake index bf06e2ffd9..9ae039fdbe 100644 --- a/cmake/SearchForStuff.cmake +++ b/cmake/SearchForStuff.cmake @@ -86,7 +86,12 @@ else() endif() else() if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") - set(wxWidgets_CONFIG_EXECUTABLE "/usr/local/bin/wxgtk3u-3.0-config") + if(EXISTS "/usr/local/bin/wxgtk3u-3.1-config") + set(wxWidgets_CONFIG_EXECUTABLE "/usr/local/bin/wxgtk3u-3.1-config") + endif() + if(EXISTS "/usr/local/bin/wxgtk3u-3.0-config") + set(wxWidgets_CONFIG_EXECUTABLE "/usr/local/bin/wxgtk3u-3.0-config") + endif() endif() if(EXISTS "/usr/bin/wx-config-3.2") set(wxWidgets_CONFIG_EXECUTABLE "/usr/bin/wx-config-3.2")