summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-12-20 04:59:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2021-12-20 04:59:52 +0100
commitd5ebc97e766ceea03d515acbca37a3e7d387ca0a (patch)
tree48c87452b0fa3a93174ca61638b2ec3538c28cfe
parent8f5b93a81314a40930ed592e7b72630f172097f5 (diff)
cmake: pass -external:W0
-rw-r--r--cmake/opentrack-platform.cmake4
1 files changed, 4 insertions, 0 deletions
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