瀏覽代碼

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.

Jared Mulconry 8 年之前
父節點
當前提交
6f4cb363c8
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      test/CMakeLists.txt

+ 4 - 0
test/CMakeLists.txt

@@ -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)