cmMakefile: Explicitly pass backtrace to GetCustomCommandTarget

Allow GetCustomCommandTarget to be called at generate time with correct
backtraces.
This commit is contained in:
Daniel Eiband
2019-10-17 15:50:34 +02:00
parent e8360afbf7
commit 3dc084ebc1
2 changed files with 22 additions and 21 deletions

View File

@@ -169,8 +169,9 @@ public:
/**
* Get the target for PRE_BUILD, PRE_LINK, or POST_BUILD commands.
*/
cmTarget* GetCustomCommandTarget(
const std::string& target, cmObjectLibraryCommands objLibCommands) const;
cmTarget* GetCustomCommandTarget(const std::string& target,
cmObjectLibraryCommands objLibCommands,
const cmListFileBacktrace& lfbt) const;
/** Add a custom command to the build. */
cmTarget* AddCustomCommandToTarget(