From 9e41bb07b7cc910b9a7f50395e19f2a130fb7cf8 Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 18 Mar 2024 10:20:12 +0100 Subject: [PATCH] cli/CMakeLists.txt: limit a warning suppression to Clang 13 --- cli/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index 728062ccdb3..38a060df0d3 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -18,8 +18,8 @@ if (BUILD_CORE_DLL) target_compile_definitions(cli_objs PRIVATE CPPCHECKLIB_IMPORT TINYXML2_IMPORT) endif() -if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14) - # false positive warning in up to Clang 13 - caused by FD_ZERO macro +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 13) + # false positive warning in Clang 13 - caused by FD_ZERO macro set_source_files_properties(processexecutor.cpp PROPERTIES COMPILE_FLAGS -Wno-reserved-identifier) endif()