From 8463b13c148153e2aef2199bb28c4d47e43affee Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Jan 2024 03:28:17 +0100 Subject: [PATCH] Don't use -Wno-extra with MSVS when building wxWebviewChromium Only set it for the other compilers. This fixes a problem introduced in 26025e2652 (Disable -Wextra when building libcef_dll_wrapper, 2023-12-29). --- build/cmake/lib/webview_chromium/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/cmake/lib/webview_chromium/CMakeLists.txt b/build/cmake/lib/webview_chromium/CMakeLists.txt index 1c9e28314c..31a5374d97 100644 --- a/build/cmake/lib/webview_chromium/CMakeLists.txt +++ b/build/cmake/lib/webview_chromium/CMakeLists.txt @@ -59,7 +59,6 @@ set(USE_SANDBOX OFF) # Disable usage of sandbox on windows add_subdirectory(${CEF_ROOT} ${CEF_BUILD_DIR} EXCLUDE_FROM_ALL) set_target_properties(libcef_dll_wrapper PROPERTIES FOLDER "Third Party Libraries" - COMPILE_FLAGS "-Wno-extra" OUTPUT_NAME "libcef_dll_wrapper" ) @@ -68,6 +67,8 @@ if(MSVC) get_target_property(cef_compile_options libcef_dll_wrapper COMPILE_OPTIONS) string(REGEX REPLACE "/MTd?;" "" cef_compile_options "${cef_compile_options}") set_target_properties(libcef_dll_wrapper PROPERTIES COMPILE_OPTIONS "${cef_compile_options}") +else() + set_target_properties(libcef_dll_wrapper PROPERTIES COMPILE_OPTIONS "-Wno-extra") endif() add_library(libcef SHARED IMPORTED GLOBAL)