diff options
author | Brad King <brad.king@kitware.com> | 2017-10-26 12:15:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-26 13:47:29 (GMT) |
commit | a1b1f1a282b7d5b811ac15e2ae823d0db23fe70f (patch) | |
tree | 06c6e255048d5819c00cc687050c7e5105b87121 /Tests/RunCMake/CMP0040 | |
parent | a91eb5e41f486628910f189bf40403568af013c7 (diff) | |
download | CMake-a1b1f1a282b7d5b811ac15e2ae823d0db23fe70f.zip CMake-a1b1f1a282b7d5b811ac15e2ae823d0db23fe70f.tar.gz CMake-a1b1f1a282b7d5b811ac15e2ae823d0db23fe70f.tar.bz2 |
CMP0040: Clarify policy warning to match documentation
In commit v3.5.0-rc1~8^2~2 (Help: Clarify policy `CMP0040`
documentation, 2016-01-28) the documentation was clarified to indicate
that the target must be defined in the current directory. Do the same
for the text of the policy warning itself.
Fixes: #17399
Diffstat (limited to 'Tests/RunCMake/CMP0040')
-rw-r--r-- | Tests/RunCMake/CMP0040/CMP0040-WARN-missing-target-stderr.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/CMP0040/CMP0040-WARN-missing-target-stderr.txt b/Tests/RunCMake/CMP0040/CMP0040-WARN-missing-target-stderr.txt index e3e3ff4..70ed05b 100644 --- a/Tests/RunCMake/CMP0040/CMP0040-WARN-missing-target-stderr.txt +++ b/Tests/RunCMake/CMP0040/CMP0040-WARN-missing-target-stderr.txt @@ -1,8 +1,8 @@ CMake Warning \(dev\) at CMP0040-WARN-missing-target.cmake:2 \(add_custom_command\): Policy CMP0040 is not set: The target in the TARGET signature of - add_custom_command\(\) must exist. Run "cmake --help-policy CMP0040" for - policy details. Use the cmake_policy command to set the policy and - suppress this warning. + add_custom_command\(\) must exist and must be defined in the current + directory. Run "cmake --help-policy CMP0040" for policy details. Use the + cmake_policy command to set the policy and suppress this warning. + No TARGET 'foobar' has been created in this directory. Call Stack \(most recent call first\): |