CMake: require wxWidgets 3.0.1 or newer

Fixes issue 7206 on outdated systems (e.g. Ubuntu 14.04).
Note: Our version in Externals is somewhere between 3.0.0 and 3.0.1.
This commit is contained in:
Tillmann Karras 2015-04-23 17:50:13 +02:00
parent 87a63713f4
commit c4beec7070

View File

@ -721,9 +721,7 @@ if(NOT DISABLE_WX AND NOT ANDROID)
ERROR_QUIET
)
message("Found wxWidgets version ${wxWidgets_VERSION}")
if(UNIX)
set(wxMIN_VERSION "3.0.0")
endif()
set(wxMIN_VERSION "3.0.1")
if(${wxWidgets_VERSION} VERSION_LESS ${wxMIN_VERSION})
message("At least ${wxMIN_VERSION} is required; ignoring found version")
unset(wxWidgets_FOUND)