cmake: add flag _CRT_NONSTDC_NO_DEPRECATE to silent MSVC deprecation warnings
This commit is contained in:
parent
ded90344f4
commit
1a95a58b5a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user