summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-11-10 12:12:23 -0500
committerBrad King <brad.king@kitware.com>2020-11-17 13:22:52 -0500
commitd800c26ce947c01dc32871614c137f7c9bdce3cb (patch)
tree96928959bcca3f00e28167e713c81ee8a7842435 /Tests
parentc0619861c9b4455c785c64d1d7b8cfcf8de5b9ae (diff)
downloadcmake-d800c26ce947c01dc32871614c137f7c9bdce3cb.tar.gz
cmake: Fix processing of -Wno-error= flags
Fix two bugs that happened to cancel each other out for cases covered by our test suite. Add a test case that distinguishes them.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CommandLine/RunCMakeTest.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
index c438860225..bb40c52d00 100644
--- a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
@@ -671,6 +671,10 @@ set(RunCMake_TEST_OPTIONS -Wno-error=deprecated)
run_cmake(Wno-error_deprecated)
unset(RunCMake_TEST_OPTIONS)
+set(RunCMake_TEST_OPTIONS -Werror=deprecated -Wno-error=deprecated)
+run_cmake(Wno-error_deprecated)
+unset(RunCMake_TEST_OPTIONS)
+
# Dev warnings should be on by default
run_cmake(Wdev)