From abebb974aa1983b4cbdd5a2d886908d735530694 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 22 Nov 2005 13:36:21 -0500 Subject: COMP: Define _CRT_SECURE_NO_DEPRECATE to build CMake itself on VS8. This disables 1000s of deprecation warnings about standard code. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 040cf61..be6a5f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,11 @@ IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.4) INCLUDE (${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityCXX.cmake) ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.4) +# Disable deprecation warnings for standard C functions. +IF(CMAKE_COMPILER_2005) + ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE) +ENDIF(CMAKE_COMPILER_2005) + #silence duplicate symbol warnings on AIX IF(CMAKE_SYSTEM MATCHES "AIX.*") IF(NOT CMAKE_COMPILER_IS_GNUCXX) -- cgit v0.12