From 0d503975e8501c904b45a6420f6a97e6777fef3d Mon Sep 17 00:00:00 2001 From: Simon Vidanovic Date: Wed, 16 Oct 2024 10:31:00 -0700 Subject: [PATCH] Warings check removed for Clang only. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 748f1d2..9b61ff4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ if(NOT TARGET xmlParser) FetchContent_MakeAvailable(xmlParser) # xmlParser is an old component and uses deprecated functions. This is to disable compiler warnings - if (MSVC) + if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") target_compile_definitions(xmlParser PRIVATE _CRT_SECURE_NO_WARNINGS) else() target_compile_options(xmlParser PRIVATE -Wno-deprecated-declarations)