suppress MSVC strdup warning (#1314)

This commit is contained in:
Ben Ashbaugh
2021-08-31 11:44:17 -07:00
committed by GitHub
parent e27a97fbd8
commit 995c7dbfbb
2 changed files with 2 additions and 5 deletions

View File

@@ -21,8 +21,3 @@ set(HARNESS_SOURCES
)
add_library(harness STATIC ${HARNESS_SOURCES})
if(MSVC)
# Don't warn about using the portable "strdup" function.
target_compile_definitions(harness PRIVATE _CRT_NONSTDC_NO_DEPRECATE)
endif()