Use the *_SECURE_NO_WARNINGS defines for MSVC 2010 as well.

MSVC is Windows-only anyway, so I removed the extra check.
The version check could probably be just MSVC since I can think of no way the defines would break older or future versions.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@840 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
klickverbot
2010-11-10 21:54:05 +00:00
parent 7e5e2d7ea1
commit 76e15fd5c9

View File

@@ -730,12 +730,10 @@ ADD_LIBRARY( assimp SHARED
ADD_DEFINITIONS( -DASSIMP_BUILD_DLL_EXPORT )
if ( WIN32 )
if ( MSVC80 OR MSVC90 )
ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
endif ( MSVC80 OR MSVC90 )
endif ( WIN32 )
if ( MSVC80 OR MSVC90 OR MSVC10 )
ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
endif ( MSVC80 OR MSVC90 OR MSVC10 )
SET_TARGET_PROPERTIES( assimp PROPERTIES
VERSION ${LIBRARY_VERSION}