From 17b24d552baa2bed05a277e3df11fe81d571a6f3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 7 Nov 2014 10:36:06 -0500 Subject: curl: Disable warnings to avoid changing 3rd party code --- Utilities/cmcurl/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ___| | | | _ \| | -- cgit v0.12