summaryrefslogtreecommitdiffstats
path: root/CompileFlags.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-30 12:44:24 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-30 12:44:24 (GMT)
commitd2f901bebfe0f57d68a518c420512d27e23b6ce5 (patch)
treef5b4aff8339e7f9885ab781baf8f29d2326e3c73 /CompileFlags.cmake
parent91b1d90999abd5d346ef481f0a8849be9b23c0e5 (diff)
downloadCMake-d2f901bebfe0f57d68a518c420512d27e23b6ce5.zip
CMake-d2f901bebfe0f57d68a518c420512d27e23b6ce5.tar.gz
CMake-d2f901bebfe0f57d68a518c420512d27e23b6ce5.tar.bz2
COMP: Fix warnings on VS9.
Diffstat (limited to 'CompileFlags.cmake')
-rw-r--r--CompileFlags.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/CompileFlags.cmake b/CompileFlags.cmake
index 15e5520..59f335d 100644
--- a/CompileFlags.cmake
+++ b/CompileFlags.cmake
@@ -10,9 +10,9 @@ ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
INCLUDE (${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityCXX.cmake)
# Disable deprecation warnings for standard C functions.
-IF(CMAKE_COMPILER_2005)
+IF(MSVC80 OR MSVC90)
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
-ENDIF(CMAKE_COMPILER_2005)
+ENDIF(MSVC80 OR MSVC90)
#silence duplicate symbol warnings on AIX
IF(CMAKE_SYSTEM MATCHES "AIX.*")