From 8b4b4273cc39604774a7e9c0c0d16c622e972dd8 Mon Sep 17 00:00:00 2001 From: matkuki Date: Mon, 16 May 2022 14:10:28 +0200 Subject: [PATCH] Update CMakeLists.txt Fixes compilation error on Visual Studio 2022 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e336f2a09..930190b9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -273,8 +273,8 @@ endif() if(CMAKE_C_COMPILER_ID STREQUAL "MSVC") message("Adding MSVC options") - target_compile_options(c3c PRIVATE /wd4068 /wd4090 /WX) - target_compile_options(c3c_wrappers PUBLIC /wd4624 /wd4267 /wd4244 /WX) + target_compile_options(c3c PRIVATE /wd4068 /wd4090 /WX /Wv:18) + target_compile_options(c3c_wrappers PUBLIC /wd4624 /wd4267 /wd4244 /WX /Wv:18) if(CMAKE_BUILD_TYPE STREQUAL "Debug") target_compile_options(c3c PUBLIC /MTd) target_compile_options(c3c_wrappers PUBLIC /MTd)