Define _SCL_SECURE_NO_WARNINGS on Windows.
This is required to squash warnings about 'checked iterators'. Regardless of their utility we can't use them on other platforms, so we don't care.
This commit is contained in:
parent
f3b232238c
commit
062344e40d
|
@ -29,13 +29,14 @@ endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-D_CRT_SECURE_NO_DEPRECATE=1
|
-D_CRT_SECURE_NO_DEPRECATE
|
||||||
-D_CRT_SECURE_NO_WARNINGS=1
|
-D_CRT_SECURE_NO_WARNINGS
|
||||||
|
-D_SCL_SECURE_NO_WARNINGS
|
||||||
-D_WIN32_WINNT=0x500
|
-D_WIN32_WINNT=0x500
|
||||||
-D_WIN32_IE=_WIN32_WINNT
|
-D_WIN32_IE=_WIN32_WINNT
|
||||||
-DISOLATION_AWARE_ENABLED=1
|
-DISOLATION_AWARE_ENABLED
|
||||||
-DWIN32=1
|
-DWIN32
|
||||||
-DWIN32_LEAN_AND_MEAN=1
|
-DWIN32_LEAN_AND_MEAN
|
||||||
-DUNICODE
|
-DUNICODE
|
||||||
-DNOMINMAX
|
-DNOMINMAX
|
||||||
-D_UNICODE)
|
-D_UNICODE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user