diff options
author | Brad King <brad.king@kitware.com> | 2015-09-28 14:44:55 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-09-28 14:44:55 (GMT) |
commit | 664fd4d1dad678f0e1d734d24cca777182b1479b (patch) | |
tree | 2c6fc70c594eb17e22ee67c5cef10cd395063697 /Tests | |
parent | bc92647b9179eed8b8de61a3c6785d9d96ccd0cc (diff) | |
parent | bc3e1e4b5586c4404591e5f01461376eb51391d1 (diff) | |
download | CMake-664fd4d1dad678f0e1d734d24cca777182b1479b.zip CMake-664fd4d1dad678f0e1d734d24cca777182b1479b.tar.gz CMake-664fd4d1dad678f0e1d734d24cca777182b1479b.tar.bz2 |
Merge topic 'test-Wno-dev'
bc3e1e4b Tests: Add case for -Wdev and -Wno-dev with non-message() warnings (#15747)
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/CommandLine/Wdev-stderr.txt | 6 | ||||
-rw-r--r-- | Tests/RunCMake/CommandLine/Wdev.cmake | 5 | ||||
-rw-r--r-- | Tests/RunCMake/CommandLine/Wno-dev.cmake | 5 |
3 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/Wdev-stderr.txt b/Tests/RunCMake/CommandLine/Wdev-stderr.txt index f427303..92c1d23 100644 --- a/Tests/RunCMake/CommandLine/Wdev-stderr.txt +++ b/Tests/RunCMake/CommandLine/Wdev-stderr.txt @@ -2,4 +2,10 @@ Some Author Warning Call Stack \(most recent call first\): CMakeLists.txt:3 \(include\) +This warning is for project developers. Use -Wno-dev to suppress it. + +CMake Warning \(dev\) at Wdev.cmake:6 \(include\): + include\(\) given empty file name \(ignored\). +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) This warning is for project developers. Use -Wno-dev to suppress it.$ diff --git a/Tests/RunCMake/CommandLine/Wdev.cmake b/Tests/RunCMake/CommandLine/Wdev.cmake index 0242086..e5026ef 100644 --- a/Tests/RunCMake/CommandLine/Wdev.cmake +++ b/Tests/RunCMake/CommandLine/Wdev.cmake @@ -1 +1,6 @@ message(AUTHOR_WARNING "Some Author Warning") + +# with -Wdev this will also cause an AUTHOR_WARNING message, checks that +# messages issued outside of the message command, by other CMake commands, also +# are affected by -Wdev +include("") diff --git a/Tests/RunCMake/CommandLine/Wno-dev.cmake b/Tests/RunCMake/CommandLine/Wno-dev.cmake index 0242086..d81b858 100644 --- a/Tests/RunCMake/CommandLine/Wno-dev.cmake +++ b/Tests/RunCMake/CommandLine/Wno-dev.cmake @@ -1 +1,6 @@ message(AUTHOR_WARNING "Some Author Warning") + +# without -Wno-dev this will also cause an AUTHOR_WARNING message, checks that +# messages issued outside of the message command, by other CMake commands, also +# are affected by -Wno-dev +include("") |