diff options
author | Brad King <brad.king@kitware.com> | 2022-08-23 11:58:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-08-23 11:58:40 (GMT) |
commit | 066b22b37111365937152eec42a54eaa4d9e6ed0 (patch) | |
tree | 43d94823c25ee29222e208832f413ea569db7185 /Source/cmSetPropertyCommand.cxx | |
parent | b50a5ba456fcaf49596e13b61537b46576fbb79a (diff) | |
parent | 52c95540b722926ba833ead05a575189bdabf84e (diff) | |
download | CMake-066b22b37111365937152eec42a54eaa4d9e6ed0.zip CMake-066b22b37111365937152eec42a54eaa4d9e6ed0.tar.gz CMake-066b22b37111365937152eec42a54eaa4d9e6ed0.tar.bz2 |
Merge topic 'target-prop-backtraces'
52c95540b7 target_*: Fix cross-directory call backtraces
0d64c3abd1 Tests: Add FileAPI case for cross-directory target_* commands
ef6a4240ba cmQtAutoGenInitializer: Drop unnecessary argument in AppendProperty call
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7602
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); |