CMake: Abort if Chromium is enabled on Windows with unsupported compiler

The user has explicitly enabled chromium, so we shouldn't continue without it.
This commit is contained in:
Maarten Bent 2024-01-28 14:09:40 +01:00
parent cf04523ece
commit 8aad6ba37a
No known key found for this signature in database
GPG key ID: 58AAEE3F4A4FD070

View file

@ -501,9 +501,9 @@ if(wxUSE_GUI)
endif()
if(wxUSE_WEBVIEW_CHROMIUM AND WIN32 AND NOT MSVC)
message(WARNING "WebviewChromium libcef_dll_wrapper can only be built with MSVC... disabled")
wx_option_force_value(wxUSE_WEBVIEW_CHROMIUM OFF)
message(FATAL_ERROR "WebviewChromium libcef_dll_wrapper can only be built with MSVC")
endif()
if(wxUSE_WEBVIEW_CHROMIUM)
# Check for C++17 support as it's required by CEF: we trust
# CMAKE_CXX_STANDARD if it is defined, but we need to compile a