From 74b8f7862291d795eba525f3103f1370b8ec7518 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 14 Jan 2015 09:20:27 -0500 Subject: zlib: Disable warnings to avoid changing 3rd party code --- Utilities/cmzlib/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Utilities/cmzlib/CMakeLists.txt b/Utilities/cmzlib/CMakeLists.txt index 66e8be2..0be48f1 100644 --- a/Utilities/cmzlib/CMakeLists.txt +++ b/Utilities/cmzlib/CMakeLists.txt @@ -1,5 +1,13 @@ PROJECT(CMZLIB) +# 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() + INCLUDE_DIRECTORIES( "${CMZLIB_SOURCE_DIR}" "${CMZLIB_SOURCE_DIR}/.." -- cgit v0.12