From ea085bddd14341c1cf50bd15b5c50b8532ea2c01 Mon Sep 17 00:00:00 2001 From: kimmi Date: Sat, 18 Apr 2009 11:24:00 +0000 Subject: [PATCH] - Remove crt- and secure-warnings for VC8.0 in cmake enviroment. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@391 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index f5f5d4b17..608dfadce 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -556,3 +556,9 @@ ADD_LIBRARY( assimp SHARED ) ADD_DEFINITIONS(-DASSIMP_BUILD_DLL_EXPORT) +if (WIN32) + if ( MSVC80 ) + ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS ) + ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS ) + endif( MSVC80 ) +endif (WIN32)