add_custom_command: Target-dependent generator expression support
OUTPUT variant with a TARGET given to allow resolving target-based generator expressions wouldn't work because OUTPUT is resolved before generator targets are created, i.e. FindGeneratorTargetToUse() returns nullptr. This is a known limitation, see #21364. Implements #21336.
Showing
- Help/command/add_custom_command.rst 5 additions, 0 deletionsHelp/command/add_custom_command.rst
- Help/release/dev/add_custom_command-TARGET-genex.rst 5 additions, 0 deletionsHelp/release/dev/add_custom_command-TARGET-genex.rst
- Source/cmCustomCommand.cxx 10 additions, 0 deletionsSource/cmCustomCommand.cxx
- Source/cmCustomCommand.h 5 additions, 0 deletionsSource/cmCustomCommand.h
- Source/cmCustomCommandGenerator.cxx 11 additions, 7 deletionsSource/cmCustomCommandGenerator.cxx
- Source/cmCustomCommandGenerator.h 1 addition, 0 deletionsSource/cmCustomCommandGenerator.h
- Source/cmLocalGenerator.cxx 1 addition, 0 deletionsSource/cmLocalGenerator.cxx
- Tests/RunCMake/add_custom_command/RunCMakeTest.cmake 17 additions, 0 deletionsTests/RunCMake/add_custom_command/RunCMakeTest.cmake
- Tests/RunCMake/add_custom_command/TargetGenexEvent.cmake 10 additions, 0 deletionsTests/RunCMake/add_custom_command/TargetGenexEvent.cmake
Loading
Please register or sign in to comment