From bf6cd9bec0053a1bc1373066d83e54cbc74a4140 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 31 Dec 2021 23:26:51 +0100 Subject: cmake: always use -Zc:inline for msvc --- cmake/opentrack-platform.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake') diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index 488434f7..62c27d7d 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -144,6 +144,7 @@ if(MSVC) add_compile_options(-external:W0 -external:anglebrackets) endif() add_compile_options(-Zc:preprocessor) + add_compile_options(-Zc:inline) #C4457: declaration of 'id' hides function parameter #C4456: declaration of 'i' hides previous local declaration -- cgit v1.2.3