Add macro _CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE for msvc to avoid warnings
This commit is contained in:
parent
fe3235174d
commit
e6c279718f
1 changed files with 5 additions and 0 deletions
|
@ -554,6 +554,11 @@ if(WIN32)
|
|||
set(stratagus_LIBS ${stratagus_LIBS} dsound dxguid winmm ws2_32)
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
# Avoid some warnings
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE=1)
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
add_definitions(-DUSE_MAC)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue