summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-platform.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-12-31 23:13:23 +0100
committerStanislaw Halik <sthalik@misaki.pl>2021-12-31 23:13:23 +0100
commit5caf3cabe633524143ba467e27e2e5da15b7d9ab (patch)
tree5539422ba7c1d9659515d1246cd3393bf96b093c /cmake/opentrack-platform.cmake
parent33cc5c8e1f0792d24d1ee17c4dd829674314f238 (diff)
cmake: always use -Zc:preprocessor for MSVC
Diffstat (limited to 'cmake/opentrack-platform.cmake')
-rw-r--r--cmake/opentrack-platform.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake
index d44f0ea0..d96fcc3a 100644
--- a/cmake/opentrack-platform.cmake
+++ b/cmake/opentrack-platform.cmake
@@ -140,6 +140,7 @@ if(MSVC)
if (MSVC_VERSION MATCHES "^(19[3-9]..|2...)$")
add_compile_options(-external:W0 -external:anglebrackets)
endif()
+ add_compile_options(-Zc:preprocessor)
#C4457: declaration of 'id' hides function parameter
#C4456: declaration of 'i' hides previous local declaration