Skip to content

Commit

Permalink
Supress a warning treated as an error in MSVC (#280)
Browse files Browse the repository at this point in the history
Add definition to silence MSVC error C2220
  • Loading branch information
m-mirz authored Feb 28, 2024
2 parents b17546a + 56a1ced commit 7cbfb0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ if(MSVC)
add_definitions(-D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS)
add_definitions(-D_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING)

# Silence Visual Studio error C2220
add_definitions(-D_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING)

# Set exception handling for portability
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")

Expand Down

0 comments on commit 7cbfb0b

Please sign in to comment.