summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-11-07 15:36:06 (GMT)
committerBrad King <brad.king@kitware.com>2014-11-10 15:13:38 (GMT)
commit17b24d552baa2bed05a277e3df11fe81d571a6f3 (patch)
tree9aa84fc8725809891b1536634d148223b2efa8fd /Utilities
parent4c3bd340804117c810c38273eee617911d475a36 (diff)
downloadCMake-17b24d552baa2bed05a277e3df11fe81d571a6f3.zip
CMake-17b24d552baa2bed05a277e3df11fe81d571a6f3.tar.gz
CMake-17b24d552baa2bed05a277e3df11fe81d571a6f3.tar.bz2
curl: Disable warnings to avoid changing 3rd party code
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index 71ebe9f..c4a930e 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -36,6 +36,14 @@ if(WIN32)
set(HAVE_INET_PTON 0 CACHE INTERNAL "Do not use inet_pton")
endif()
+# Disable warnings to avoid changing 3rd party code.
+if(CMAKE_C_COMPILER_ID MATCHES
+ "^(GNU|Clang|AppleClang|XL|VisualAge|SunPro|MIPSpro|HP|Intel)$")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
+elseif(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
+endif()
+
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |