summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-08-18 21:09:23 (GMT)
committerBrad King <brad.king@kitware.com>2020-08-18 21:09:23 (GMT)
commit16accdc76e3ad9e076e6da72460606493fb4b38b (patch)
tree4b3bb97db5d0eb8205ebebe02a00fb96092ab28e /Source/CursesDialog
parent31b057182e75130dc3fb77f0bf1fe0d0abb1a60c (diff)
downloadCMake-16accdc76e3ad9e076e6da72460606493fb4b38b.zip
CMake-16accdc76e3ad9e076e6da72460606493fb4b38b.tar.gz
CMake-16accdc76e3ad9e076e6da72460606493fb4b38b.tar.bz2
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 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