Skip to content

Commit

Permalink
Warings check removed for Clang only.
Browse files Browse the repository at this point in the history
  • Loading branch information
vidanovic committed Oct 16, 2024
1 parent 9974c9a commit 0d50397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d50397

Please sign in to comment.