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).
This commit is contained in:
Vadim Zeitlin 2024-01-23 03:28:17 +01:00
parent 0fa605abb5
commit 8463b13c14

View file

@ -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)