From 597b30e99c46636d0294fe97b4977d5e25ddcf18 Mon Sep 17 00:00:00 2001 From: Nicholas Bianco Date: Mon, 16 Sep 2024 15:21:33 -0700 Subject: [PATCH] Remove /wd4996 compiler option --- cmake/OpenSimMacros.cmake | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmake/OpenSimMacros.cmake b/cmake/OpenSimMacros.cmake index 9a3566c955..e1b9e537e9 100644 --- a/cmake/OpenSimMacros.cmake +++ b/cmake/OpenSimMacros.cmake @@ -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` - $<$:/wd4996> - ) - target_compile_definitions(${OSIMADDLIB_LIBRARY_NAME} PUBLIC # `spdlog` transitively uses a deprecated `stdext::checked_array_iterator` $<$:_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING>