Added a preprocessor definition for MSVC to silence safety warnings regarding

C library functions. This addresses all warnings for MSVC x86 and x64 when
building zlib, tools and viewer as a static lib.
pull/1083/head
Jared Mulconry 2016-11-27 17:34:34 +11:00
parent cf151b77d8
commit 6f4cb363c8
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,10 @@ ELSE( WIN32 )
SET( platform_libs pthread )
ENDIF( WIN32 )
IF(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
ENDIF(MSVC)
target_link_libraries( unit assimp ${platform_libs} )
add_subdirectory(headercheck)