diff options
author | Brad King <brad.king@kitware.com> | 2020-08-19 15:48:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-08-19 15:49:18 (GMT) |
commit | 80b9c4411b8d6184a6add745e96cc62fced21f1b (patch) | |
tree | e998b396de43d376ec43f10830a5ed344d6dd370 | |
parent | cb5c8e6f258d4fb67c8034c34ec3e61f4eb6c551 (diff) | |
parent | 16accdc76e3ad9e076e6da72460606493fb4b38b (diff) | |
download | CMake-80b9c4411b8d6184a6add745e96cc62fced21f1b.zip CMake-80b9c4411b8d6184a6add745e96cc62fced21f1b.tar.gz CMake-80b9c4411b8d6184a6add745e96cc62fced21f1b.tar.bz2 |
Merge topic 'ccmake-no-form-warnings'
16accdc76e ccmake: suppress warnings in third-party form code
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5141
-rw-r--r-- | Source/CursesDialog/form/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/CursesDialog/form/CMakeLists.txt b/Source/CursesDialog/form/CMakeLists.txt index b468f5b..21c499e 100644 --- a/Source/CursesDialog/form/CMakeLists.txt +++ b/Source/CursesDialog/form/CMakeLists.txt @@ -3,6 +3,14 @@ project(CMAKE_FORM) +# Disable warnings to avoid changing 3rd party code. +if(CMAKE_C_COMPILER_ID MATCHES + "^(GNU|Clang|AppleClang|XLClang|XL|VisualAge|SunPro|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() + configure_file(cmFormConfigure.h.in "${CMAKE_CURRENT_BINARY_DIR}/cmFormConfigure.h") add_library(cmForm |