diff options
author | Brad King <brad.king@kitware.com> | 2020-08-18 17:09:23 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-18 17:09:23 -0400 |
commit | 16accdc76e3ad9e076e6da72460606493fb4b38b (patch) | |
tree | 4b3bb97db5d0eb8205ebebe02a00fb96092ab28e /Source/CursesDialog | |
parent | 31b057182e75130dc3fb77f0bf1fe0d0abb1a60c (diff) | |
download | cmake-16accdc76e3ad9e076e6da72460606493fb4b38b.tar.gz |
ccmake: suppress warnings in third-party form code
Diffstat (limited to 'Source/CursesDialog')
-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 b468f5b318..21c499e83e 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 |