cmake: add flag _CRT_NONSTDC_NO_DEPRECATE to silent MSVC deprecation warnings

This commit is contained in:
Hugues Delorme 2015-03-26 12:05:13 +01:00
parent ded90344f4
commit 1a95a58b5a

View File

@ -101,7 +101,7 @@ if(MSVC)
endif() endif()
# Disable deprecation warnings about "non-secure" CRT functions # Disable deprecation warnings about "non-secure" CRT functions
add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS)
endif() endif()
# Enable DLL generation (export symbols) # Enable DLL generation (export symbols)