diff options
author | Brad King <brad.king@kitware.com> | 2022-08-22 10:58:46 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-08-22 15:29:43 -0400 |
commit | 52c95540b722926ba833ead05a575189bdabf84e (patch) | |
tree | b620d3dfeaabb69d61a9e3c2413a0d73692d6968 /Source/cmTargetIncludeDirectoriesCommand.cxx | |
parent | 0d64c3abd13a0b14f1a14b7717dbac8988d12256 (diff) | |
download | cmake-52c95540b722926ba833ead05a575189bdabf84e.tar.gz |
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/cmTargetIncludeDirectoriesCommand.cxx')
-rw-r--r-- | Source/cmTargetIncludeDirectoriesCommand.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTargetIncludeDirectoriesCommand.cxx b/Source/cmTargetIncludeDirectoriesCommand.cxx index b4b43197cd..cb8387397e 100644 --- a/Source/cmTargetIncludeDirectoriesCommand.cxx +++ b/Source/cmTargetIncludeDirectoriesCommand.cxx @@ -88,7 +88,8 @@ void TargetIncludeDirectoriesImpl::HandleInterfaceContent( system); if (system) { std::string joined = this->Join(content); - tgt->AppendProperty("INTERFACE_SYSTEM_INCLUDE_DIRECTORIES", joined); + tgt->AppendProperty("INTERFACE_SYSTEM_INCLUDE_DIRECTORIES", joined, + this->Makefile->GetBacktrace()); } } |