From dde127b52447aebccd7d52fade4430d1435a963f Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Wed, 15 Nov 2023 20:58:44 +0000 Subject: [PATCH] Fix warning about MSVC deprecated debug iterators --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 16adf1c02..6f681ce15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,6 +99,9 @@ if(MSVC) # Workaround C1128 error add_compile_options(/bigobj) + + # Debug iterators used by Qt 5 + add_compile_definitions(_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING) endif() if(UNIX AND NOT APPLE)