Skip to content

Commit

Permalink
Remove /wd4996 compiler option
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbianco committed Sep 16, 2024
1 parent 94d7a4d commit 597b30e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmake/OpenSimMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,6 @@ function(OpenSimAddLibrary)
# This target links to the libraries provided as arguments to this func.
target_link_libraries(${OSIMADDLIB_LIBRARY_NAME} ${OSIMADDLIB_LINKLIBS})

target_compile_options(${OSIMADDLIB_LIBRARY_NAME} PUBLIC
# disable warning 4996 on Windows: `spdlog` transitively
# uses a deprecated `stdext::checked_array_iterator`
$<$<CXX_COMPILER_ID:MSVC>:/wd4996>
)

target_compile_definitions(${OSIMADDLIB_LIBRARY_NAME} PUBLIC
# `spdlog` transitively uses a deprecated `stdext::checked_array_iterator`
$<$<CXX_COMPILER_ID:MSVC>:_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING>
Expand Down

0 comments on commit 597b30e

Please sign in to comment.