diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmTarget.cxx | 5 | ||||
-rw-r--r-- | Source/cmTarget.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index be03e56..d3b2e1d 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -188,6 +188,7 @@ public: std::vector<cmListFileBacktrace> LinkDirectoriesBacktraces; std::vector<std::string> LinkImplementationPropertyEntries; std::vector<cmListFileBacktrace> LinkImplementationPropertyBacktraces; + cmListFileBacktrace Backtrace; }; cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type, @@ -365,7 +366,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type, } // Save the backtrace of target construction. - this->Backtrace = impl->Makefile->GetBacktrace(); + impl->Backtrace = impl->Makefile->GetBacktrace(); if (!this->IsImported()) { // Initialize the INCLUDE_DIRECTORIES property based on the current value @@ -508,7 +509,7 @@ std::set<BT<std::string>> const& cmTarget::GetUtilities() const cmListFileBacktrace const& cmTarget::GetBacktrace() const { - return this->Backtrace; + return impl->Backtrace; } bool cmTarget::IsExecutableWithExports() const diff --git a/Source/cmTarget.h b/Source/cmTarget.h index ca9a31d..8b51c93 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -321,8 +321,6 @@ private: friend class cmTargetInternals; friend class cmGeneratorTarget; friend class cmTargetTraceDependencies; - - cmListFileBacktrace Backtrace; }; typedef std::unordered_map<std::string, cmTarget> cmTargets; |