diff --git a/CMakeLists.txt b/CMakeLists.txt index e254c16e12..916896d5ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -960,8 +960,10 @@ find_package( wxWidgets ${wxWidgets_REQ_VERSION} COMPONENTS gl aui adv html core # Include wxWidgets macros. include( ${wxWidgets_USE_FILE} ) -if( ${wxWidgets_VERSION_STRING} VERSION_LESS 3.2 ) - message( FATAL_ERROR "wxWidgets 3.2.0 or greater is required" ) +if( NOT MSVC ) + if( ${wxWidgets_VERSION_STRING} VERSION_LESS 3.2 ) + message( FATAL_ERROR "wxWidgets 3.2.0 or greater is required" ) + endif() endif() if( MINGW )