diff options
author | R2RT <artur.ryt@gmail.com> | 2018-11-04 22:05:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-05 13:31:09 (GMT) |
commit | 53a5aec89998a58dff53946b47426ea692c5ad8d (patch) | |
tree | 54f8d52db37d6baefaa734238fd09a40cb281d4e /Tests/RunCMake/CommandLine/warn-uninitialized-stderr.txt | |
parent | f92f93467ecc22419c981f8f5283c81fa9d8eb01 (diff) | |
download | CMake-53a5aec89998a58dff53946b47426ea692c5ad8d.zip CMake-53a5aec89998a58dff53946b47426ea692c5ad8d.tar.gz CMake-53a5aec89998a58dff53946b47426ea692c5ad8d.tar.bz2 |
CMP0053: Fix double warning on uninitialized variables in -P mode
When `CMP0053` is not set to OLD or NEW then we compute both variants
in case we need to warn about a behavior change. Do not allow both
code paths to produce an uninitialized variable warning.
Fixes: #18552
Diffstat (limited to 'Tests/RunCMake/CommandLine/warn-uninitialized-stderr.txt')
-rw-r--r-- | Tests/RunCMake/CommandLine/warn-uninitialized-stderr.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/warn-uninitialized-stderr.txt b/Tests/RunCMake/CommandLine/warn-uninitialized-stderr.txt new file mode 100644 index 0000000..a13402a --- /dev/null +++ b/Tests/RunCMake/CommandLine/warn-uninitialized-stderr.txt @@ -0,0 +1,5 @@ +^CMake Warning \(dev\) at warn-uninitialized.cmake:1 \(set\): + uninitialized variable 'WARN_FROM_NORMAL_CMAKE_FILE' +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) +This warning is for project developers. Use -Wno-dev to suppress it.$ |