1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index c83dd83..2d1a7e6 100644
5 @@ -82,9 +82,11 @@ if(HAVE_WERROR_FLAG)
6 option(ENABLE_WERROR "Enable -Werror in all Makefiles" OFF)
9 +if(MSVC AND NOT WITH_ASM)
10 + add_compile_options(/wd4267 /wd4996)
14 - $<$<BOOL:${MSVC}>:/wd4267>
15 - $<$<BOOL:${MSVC}>:/wd4996>
16 $<$<BOOL:${ENABLE_WERROR}>:-Werror>
17 $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:${HAVE_WEFFCXX_FLAG}>>:-Weffc++>
18 $<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:${HAVE_DECL_AFTER_STMT_FLAG}>>:-Wdeclaration-after-statement>)