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>
5 lines
201 B
Plaintext
5 lines
201 B
Plaintext
CMake Error at CMP0040-NEW-missing-target.cmake:3 \(add_custom_command\):
|
|
No TARGET 'foobar' has been created in this directory.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|