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:
parent
cf04523ece
commit
8aad6ba37a
1 changed files with 2 additions and 2 deletions
|
|
@ -501,9 +501,9 @@ if(wxUSE_GUI)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(wxUSE_WEBVIEW_CHROMIUM AND WIN32 AND NOT MSVC)
|
if(wxUSE_WEBVIEW_CHROMIUM AND WIN32 AND NOT MSVC)
|
||||||
message(WARNING "WebviewChromium libcef_dll_wrapper can only be built with MSVC... disabled")
|
message(FATAL_ERROR "WebviewChromium libcef_dll_wrapper can only be built with MSVC")
|
||||||
wx_option_force_value(wxUSE_WEBVIEW_CHROMIUM OFF)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(wxUSE_WEBVIEW_CHROMIUM)
|
if(wxUSE_WEBVIEW_CHROMIUM)
|
||||||
# Check for C++17 support as it's required by CEF: we trust
|
# 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
|
# CMAKE_CXX_STANDARD if it is defined, but we need to compile a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue