From 251095b86f56db7f240e6f75346ebbe307318d33 Mon Sep 17 00:00:00 2001 From: Andrea Iob Date: Mon, 27 May 2024 21:18:50 +0200 Subject: [PATCH] cmake: suppress MSCV warning about inheritance via dominance --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bbe8eb7076..6d74b87c81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1000,8 +1000,8 @@ if (MSVC) set(CMAKE_CXX_FLAGS_RELEASE "/O2 /MD") set(CMAKE_CXX_FLAGS_MINSIZEREL "/O1 /MD") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /wd4267 /Zc:preprocessor") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /wd4267 /Zc:preprocessor") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /wd4267 /wd4250 /Zc:preprocessor") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /wd4267 /wd4250 /Zc:preprocessor") else() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fmessage-length=0") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")