CMake/Tests/RunCMake/add_custom_command/TargetNotInDir-stderr.txt
Brad King d257d68138 add_custom_command: Clarify error when TARGET is out of scope (#15681)
The add_custom_command(TARGET) signature only works for targets defined
in the current directory.  Clarify this in the error message when the
target exists but was defined elsewhere.

Inspired-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2016-01-28 10:33:26 -05:00

5 lines
195 B
Plaintext

^CMake Error at TargetNotInDir.cmake:2 \(add_custom_command\):
TARGET 'TargetNotInDir' was not created in this directory.
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)$