summaryrefslogtreecommitdiffstats
path: root/Source/cmSetPropertyCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-08-23 11:58:33 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-08-23 11:58:40 (GMT)
commit066b22b37111365937152eec42a54eaa4d9e6ed0 (patch)
tree43d94823c25ee29222e208832f413ea569db7185 /Source/cmSetPropertyCommand.cxx
parentb50a5ba456fcaf49596e13b61537b46576fbb79a (diff)
parent52c95540b722926ba833ead05a575189bdabf84e (diff)
downloadCMake-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.cxx4
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);