-
- Downloads
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>
Showing
- Source/cmMakefile.cxx 18 additions, 1 deletionSource/cmMakefile.cxx
- Tests/RunCMake/CMP0040/CMP0040-NEW-missing-target-stderr.txt 1 addition, 1 deletionTests/RunCMake/CMP0040/CMP0040-NEW-missing-target-stderr.txt
- Tests/RunCMake/CMP0040/CMP0040-WARN-missing-target-stderr.txt 1 addition, 1 deletion...s/RunCMake/CMP0040/CMP0040-WARN-missing-target-stderr.txt
- Tests/RunCMake/add_custom_command/RunCMakeTest.cmake 2 additions, 0 deletionsTests/RunCMake/add_custom_command/RunCMakeTest.cmake
- Tests/RunCMake/add_custom_command/TargetImported-result.txt 1 addition, 0 deletionsTests/RunCMake/add_custom_command/TargetImported-result.txt
- Tests/RunCMake/add_custom_command/TargetImported-stderr.txt 4 additions, 0 deletionsTests/RunCMake/add_custom_command/TargetImported-stderr.txt
- Tests/RunCMake/add_custom_command/TargetImported.cmake 2 additions, 0 deletionsTests/RunCMake/add_custom_command/TargetImported.cmake
- Tests/RunCMake/add_custom_command/TargetNotInDir-result.txt 1 addition, 0 deletionsTests/RunCMake/add_custom_command/TargetNotInDir-result.txt
- Tests/RunCMake/add_custom_command/TargetNotInDir-stderr.txt 4 additions, 0 deletionsTests/RunCMake/add_custom_command/TargetNotInDir-stderr.txt
- Tests/RunCMake/add_custom_command/TargetNotInDir.cmake 2 additions, 0 deletionsTests/RunCMake/add_custom_command/TargetNotInDir.cmake
- Tests/RunCMake/add_custom_command/TargetNotInDir/CMakeLists.txt 1 addition, 0 deletions...RunCMake/add_custom_command/TargetNotInDir/CMakeLists.txt
Loading
Please register or sign in to comment