From 2bbadb8796e23c68efc895917b5f96fc44863131 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Mon, 17 Feb 2025 16:45:50 +0100 Subject: [PATCH] Ignore VS warning about the cppformat library --- rhubarb/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rhubarb/CMakeLists.txt b/rhubarb/CMakeLists.txt index fbd023d..549b08a 100644 --- a/rhubarb/CMakeLists.txt +++ b/rhubarb/CMakeLists.txt @@ -34,6 +34,9 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # Assume UTF-8 encoding for source files and encode string constants in UTF-8 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8") + + # Ignore warnings we can't fix right now + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING") endif() # Use UTF-8 throughout