CMake: Disabled some warnings for MSVC.
authorOscar Fuentes <ofv@wanadoo.es>
Wed, 24 Sep 2008 19:27:54 +0000 (19:27 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Wed, 24 Sep 2008 19:27:54 +0000 (19:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56565 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 31f754a953db0625fa8bf9e6536f6f016b507511..039b139565ea444162f679cebf0bccf4889b06cf 100644 (file)
@@ -85,6 +85,8 @@ if( MSVC )
   add_definitions( -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS )
   add_definitions( -D_SCL_SECURE_NO_WARNINGS -DCRT_NONSTDC_NO_WARNINGS )
   add_definitions( -D_SCL_SECURE_NO_DEPRECATE )
+  add_definitions( -wd4146 -wd4503 -wd4996 -wd4800 -wd4244 -wd4624 )
+  add_definitions( -wd4355 -wd4715 )
 endif( MSVC )
 
 include_directories( ${LLVM_BINARY_DIR}/include ${llvm_include_path})