summaryrefslogtreecommitdiff
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-08-18 17:09:23 -0400
committerBrad King <brad.king@kitware.com>2020-08-18 17:09:23 -0400
commit16accdc76e3ad9e076e6da72460606493fb4b38b (patch)
tree4b3bb97db5d0eb8205ebebe02a00fb96092ab28e /Source/CursesDialog
parent31b057182e75130dc3fb77f0bf1fe0d0abb1a60c (diff)
downloadcmake-16accdc76e3ad9e076e6da72460606493fb4b38b.tar.gz
ccmake: suppress warnings in third-party form code
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/form/CMakeLists.txt8
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