cmTarget: Move backtrace member out of internal class.

This commit is contained in:
Stephen Kelly 2015-10-10 13:20:09 +02:00
parent 6694d99376
commit a48bcabd33
2 changed files with 4 additions and 5 deletions

View File

@ -64,9 +64,6 @@ const char* cmTarget::GetTargetTypeName(TargetType targetType)
class cmTargetInternals class cmTargetInternals
{ {
public: public:
// The backtrace when the target was created.
cmListFileBacktrace Backtrace;
typedef std::map<std::string, cmTarget::ImportInfo> ImportInfoMapType; typedef std::map<std::string, cmTarget::ImportInfo> ImportInfoMapType;
ImportInfoMapType ImportInfoMap; ImportInfoMapType ImportInfoMap;
@ -240,7 +237,7 @@ void cmTarget::SetMakefile(cmMakefile* mf)
} }
// Save the backtrace of target construction. // Save the backtrace of target construction.
this->Internal->Backtrace = this->Makefile->GetBacktrace(); this->Backtrace = this->Makefile->GetBacktrace();
if (!this->IsImported()) if (!this->IsImported())
{ {
@ -363,7 +360,7 @@ void cmTarget::FinishConfigure()
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
cmListFileBacktrace const& cmTarget::GetBacktrace() const cmListFileBacktrace const& cmTarget::GetBacktrace() const
{ {
return this->Internal->Backtrace; return this->Backtrace;
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------

View File

@ -471,6 +471,8 @@ private:
std::string const& suffix, std::string const& suffix,
std::string const& name, std::string const& name,
const char* version) const; const char* version) const;
cmListFileBacktrace Backtrace;
}; };
#ifdef CMAKE_BUILD_WITH_CMAKE #ifdef CMAKE_BUILD_WITH_CMAKE