[Cmake-commits] [cmake-commits] king committed CompileFlags.cmake 1.4 1.5
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Oct 27 12:11:11 EDT 2009
Update of /cvsroot/CMake/CMake
In directory public:/mounts/ram/cvs-serv3257
Modified Files:
CompileFlags.cmake
Log Message:
Disable Intel CRT deprecation warnings
The Intel Compiler for Windows uses the MS runtime library which
deprecates many C functions. We define _CRT_SECURE_NO_DEPRECATE and
_CRT_NONSTDC_NO_DEPRECATE to disable the deprecation warnings.
Index: CompileFlags.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/CompileFlags.cmake,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** CompileFlags.cmake 28 Sep 2009 15:41:53 -0000 1.4
--- CompileFlags.cmake 27 Oct 2009 16:11:08 -0000 1.5
***************
*** 26,32 ****
# not hurt other versions, and this will work into the
# future
! IF(MSVC)
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
! ENDIF(MSVC)
#silence duplicate symbol warnings on AIX
--- 26,32 ----
# not hurt other versions, and this will work into the
# future
! IF(MSVC OR WIN32 AND "${CMAKE_C_COMPILER_ID}" MATCHES "^(Intel)$")
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
! ENDIF()
#silence duplicate symbol warnings on AIX
More information about the Cmake-commits
mailing list