diff options
author | Brad King <brad.king@kitware.com> | 2022-08-22 14:58:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-08-22 19:29:43 (GMT) |
commit | 52c95540b722926ba833ead05a575189bdabf84e (patch) | |
tree | b620d3dfeaabb69d61a9e3c2413a0d73692d6968 /Source/cmSetPropertyCommand.cxx | |
parent | 0d64c3abd13a0b14f1a14b7717dbac8988d12256 (diff) | |
download | CMake-52c95540b722926ba833ead05a575189bdabf84e.zip CMake-52c95540b722926ba833ead05a575189bdabf84e.tar.gz CMake-52c95540b722926ba833ead05a575189bdabf84e.tar.bz2 |
target_*: Fix cross-directory call backtraces
Record the call-site backtrace, not the current backtrace of the
target's directory.
Fixes: #23873
Diffstat (limited to 'Source/cmSetPropertyCommand.cxx')
-rw-r--r-- | Source/cmSetPropertyCommand.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmSetPropertyCommand.cxx b/Source/cmSetPropertyCommand.cxx index db10cd4..521cf63 100644 --- a/Source/cmSetPropertyCommand.cxx +++ b/Source/cmSetPropertyCommand.cxx @@ -9,6 +9,7 @@ #include "cmExecutionStatus.h" #include "cmGlobalGenerator.h" #include "cmInstalledFile.h" +#include "cmListFileCache.h" #include "cmMakefile.h" #include "cmMessageType.h" #include "cmPolicies.h" @@ -561,7 +562,8 @@ bool HandleTarget(cmTarget* target, cmMakefile& makefile, { // Set or append the property. if (appendMode) { - target->AppendProperty(propertyName, propertyValue, appendAsString); + target->AppendProperty(propertyName, propertyValue, + makefile.GetBacktrace(), appendAsString); } else { if (remove) { target->SetProperty(propertyName, nullptr); |