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)