Commit c72d3d13 authored by jcfr's avatar jcfr
Browse files

COMP: Add definition to disable warning C4996 specific to Microsoft Dev studio 9.0

git-svn-id: http://svn.slicer.org/Slicer4/trunk@14059 3bd1e089-480b-0410-8dfb-8563597acbee
parent 07989f8d
......@@ -78,6 +78,11 @@ IF(WIN32)
ENDIF(NOT BORLAND)
ENDIF(WIN32)
# Disable warning C4996: [...] This function or variable may be unsafe. [...]
# To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details
if(MSVC90)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif(MSVC90)
# include a test for endianness (used to be done by default)
......
......@@ -115,10 +115,17 @@ endif()
# Disable the warnings that DevStudio 2005 emits wrt to sprintf, strcpu, etc.
#------------------------------------------------------------------------------
# Disable warnings that DevStudio 2005 emits wrt to sprintf, strcpu, etc.
if(CMAKE_COMPILER_2005)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
endif()
# DevStudio 9.0 - Disable warning C4996: [...] This function or variable may be unsafe. [...]
# To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details
if(MSVC90)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif(MSVC90)
#-----------------------------------------------------------------------------
# Always build Shared library
#------------------------------------------------------------------------------
......
......@@ -52,6 +52,12 @@ if(CMAKE_COMPILER_2005)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
endif(CMAKE_COMPILER_2005)
# DevStudio 9.0 - Disable warning C4996: [...] This function or variable may be unsafe. [...]
# To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details
if(MSVC90)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif(MSVC90)
if(NOT DEFINED BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS ${Slicer3_BUILD_SHARED})
endif(NOT DEFINED BUILD_SHARED_LIBS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment