From 401bdc86dd26e488a326f1a95ba4e6d6b71b7b65 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Tue, 18 Jul 2023 16:13:38 -0700 Subject: [PATCH] Add compiler flag to disable unknown pragma warnings on Windows Without this flag you get a warning from every use of Type.h since it contains a '#pramga GCC' for disabling a deprecation warning. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba9af4270a..252c2f849d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,8 @@ if (MSVC) add_compile_options( /guard:cf # required by CheckCFlags /Z7 # required by CheckCFlags - /J) # Similar to -funsigned-char on other platforms + /J # Similar to -funsigned-char on other platforms + /wd4068) # Disable unknown pragma warnings add_link_options(/debug:full # required by CheckCFlags )