diff options
author | Brad King <brad.king@kitware.com> | 2015-01-15 14:54:06 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-01-15 14:54:06 (GMT) |
commit | 9cdc2f38edea4b2d1b4421587bbe9b2a83999d4f (patch) | |
tree | a3179e6f6fe2fc2af486b91e705474e8ac8b892c | |
parent | 4ecc392b42e999e3e103eac0c0e28fa63c39167c (diff) | |
parent | 74b8f7862291d795eba525f3103f1370b8ec7518 (diff) | |
download | CMake-9cdc2f38edea4b2d1b4421587bbe9b2a83999d4f.zip CMake-9cdc2f38edea4b2d1b4421587bbe9b2a83999d4f.tar.gz CMake-9cdc2f38edea4b2d1b4421587bbe9b2a83999d4f.tar.bz2 |
Merge topic 'zlib-suppress-warnings'
74b8f786 zlib: Disable warnings to avoid changing 3rd party code
-rw-r--r-- | Utilities/cmzlib/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
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}/.." |