From d5ebc97e766ceea03d515acbca37a3e7d387ca0a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 20 Dec 2021 04:59:52 +0100 Subject: cmake: pass -external:W0 --- cmake/opentrack-platform.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake/opentrack-platform.cmake') diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index c7d1f4f6..d44f0ea0 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -137,6 +137,10 @@ if(MSVC) add_link_options(-ignore:4020) add_link_options(-ignore:4217) # debug build + if (MSVC_VERSION MATCHES "^(19[3-9]..|2...)$") + add_compile_options(-external:W0 -external:anglebrackets) + endif() + #C4457: declaration of 'id' hides function parameter #C4456: declaration of 'i' hides previous local declaration #C4263 - member function does not override any base class virtual member function -- cgit v1.2.3