diff options
author | Brad King <brad.king@kitware.com> | 2022-05-19 13:43:46 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-05-19 13:43:53 (GMT) |
commit | 758756d1ba5a1fcb6b6caf7bb8ad93c406e2b062 (patch) | |
tree | 03fb2166801c5b7e578ec92100706b5e18ec976c /Source/cmake.cxx | |
parent | f808b19020b3225b314a74fa3be65ea74b3c024f (diff) | |
parent | 65f7053d6c5a0d256691e156a22cc0e9f31a4d5a (diff) | |
download | CMake-758756d1ba5a1fcb6b6caf7bb8ad93c406e2b062.zip CMake-758756d1ba5a1fcb6b6caf7bb8ad93c406e2b062.tar.gz CMake-758756d1ba5a1fcb6b6caf7bb8ad93c406e2b062.tar.bz2 |
Merge topic 'ignore-werror-command-arg'
65f7053d6c COMPILE_WARNING_AS_ERROR: Add command-line option
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7268
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index a8dc963..6d99a3c 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1086,6 +1086,14 @@ void cmake::SetArgs(const std::vector<std::string>& args) << "uninitialized variables.\n"; state->SetCheckSystemVars(true); return true; + } }, + CommandArgument{ + "--compile-no-warning-as-error", CommandArgument::Values::Zero, + [](std::string const&, cmake* state) -> bool { + std::cout << "Ignoring COMPILE_WARNING_AS_ERROR target property and " + << "CMAKE_COMPILE_WARNING_AS_ERROR variable.\n"; + state->SetIgnoreWarningAsError(true); + return true; } } }; |