diff options
author | Brad King <brad.king@kitware.com> | 2020-11-10 17:12:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-11-17 18:22:52 (GMT) |
commit | d800c26ce947c01dc32871614c137f7c9bdce3cb (patch) | |
tree | 96928959bcca3f00e28167e713c81ee8a7842435 /Tests/RunCMake/CommandLine | |
parent | c0619861c9b4455c785c64d1d7b8cfcf8de5b9ae (diff) | |
download | CMake-d800c26ce947c01dc32871614c137f7c9bdce3cb.zip CMake-d800c26ce947c01dc32871614c137f7c9bdce3cb.tar.gz CMake-d800c26ce947c01dc32871614c137f7c9bdce3cb.tar.bz2 |
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/RunCMake/CommandLine')
-rw-r--r-- | Tests/RunCMake/CommandLine/RunCMakeTest.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake index c438860..bb40c52 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) |