Build: Fix build with wx 3.1 on FreeBSD (#7178)

This commit is contained in:
Ganael Laplanche 2022-10-14 11:55:55 +02:00 committed by GitHub
parent 95968c7e0e
commit f5498a4660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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")