summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorMartin Duffy <martin.duffy@kitware.com>2022-05-16 21:27:37 (GMT)
committerMartin Duffy <martin.duffy@kitware.com>2022-05-18 14:30:30 (GMT)
commit65f7053d6c5a0d256691e156a22cc0e9f31a4d5a (patch)
treea29446f47f180b036e0d72041ce78b6d47e23f0b /Source/cmakemain.cxx
parent76a08cd25332b74627802df8817068219b89161d (diff)
downloadCMake-65f7053d6c5a0d256691e156a22cc0e9f31a4d5a.zip
CMake-65f7053d6c5a0d256691e156a22cc0e9f31a4d5a.tar.gz
CMake-65f7053d6c5a0d256691e156a22cc0e9f31a4d5a.tar.bz2
COMPILE_WARNING_AS_ERROR: Add command-line option
Add command-line option `--compile-no-warning-as-error` to ignore value of `COMPILE_WARNING_AS_ERROR`. Issue: #19085
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 96bf845..19ac6ca 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -110,6 +110,9 @@ const char* cmDocumentationOptions[][2] = {
{ "--check-system-vars",
"Find problems with variable usage in system "
"files." },
+ { "--compile-no-warning-as-error",
+ "Ignore COMPILE_WARNING_AS_ERROR property and "
+ "CMAKE_COMPILE_WARNING_AS_ERROR variable." },
# if !defined(CMAKE_BOOTSTRAP)
{ "--profiling-format=<fmt>",
"Output data for profiling CMake scripts. Supported formats: "