d257d68138
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>
3 lines
125 B
CMake
3 lines
125 B
CMake
add_library(TargetImported UNKNOWN IMPORTED)
|
|
add_custom_command(TARGET TargetImported COMMAND ${CMAKE_COMMAND} -E echo tada)
|