summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-03-23 15:17:03 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-03-23 20:45:09 (GMT)
commit7742bf4ff5180f85bc4401745e11ce6e031f32e7 (patch)
tree408e9ad4ac6c062bec0dfc27f043f308c5301c33 /Source
parent2c14eb4852924e5423d58785e2cb3bcd72af7710 (diff)
downloadCMake-7742bf4ff5180f85bc4401745e11ce6e031f32e7.zip
CMake-7742bf4ff5180f85bc4401745e11ce6e031f32e7.tar.gz
CMake-7742bf4ff5180f85bc4401745e11ce6e031f32e7.tar.bz2
cmTarget: Move member `Backtrace` to impl
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx5
-rw-r--r--Source/cmTarget.h2
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;