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

@@ -115,6 +115,8 @@ endif()
if(MSVC)
# Don't warn when using standard non-secure functions.
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
# Don't warn about using the portable "strdup" function.
add_compile_definitions(_CRT_NONSTDC_NO_DEPRECATE)
# Fix std::min and std::max handling with windows.harness.
add_compile_definitions(NOMINMAX)
endif()