From 5caf3cabe633524143ba467e27e2e5da15b7d9ab Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 31 Dec 2021 23:13:23 +0100 Subject: cmake: always use -Zc:preprocessor for MSVC --- cmake/opentrack-platform.cmake | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3