CMake/Tests/RunCMake/add_dependencies/NoTarget-stderr.txt
Brad King de13d68d11 add_dependencies: Distinguish target v. file dependencies in error (#14050)
When called with a non-existent LHS target name the user may be trying
to add file-level dependencies.  Clarify the error message to explain
the difference between target-level and file-level dependencies.  Point
the reader at the commands and options needed for the latter.
2013-03-29 15:00:33 -04:00

10 lines
459 B
Plaintext

CMake Error at NoTarget.cmake:1 \(add_dependencies\):
Cannot add target-level dependencies to non-existent target "foo".
The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)