From 76e15fd5c911a2d911cc58ec54c073528da61efd Mon Sep 17 00:00:00 2001 From: klickverbot Date: Wed, 10 Nov 2010 21:54:05 +0000 Subject: [PATCH] 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 --- code/CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 103875d66..854161c9a 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -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}