summaryrefslogtreecommitdiffstats
path: root/Source/cmTest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmTest.cxx')
-rw-r--r--Source/cmTest.cxx21
1 files changed, 12 insertions, 9 deletions
diff --git a/Source/cmTest.cxx b/Source/cmTest.cxx
index 5cf7598..8686e06 100644
--- a/Source/cmTest.cxx
+++ b/Source/cmTest.cxx
@@ -21,15 +21,25 @@
#include "cmMakefile.h"
//----------------------------------------------------------------------------
-cmTest::cmTest()
+cmTest::cmTest(cmMakefile* mf)
{
- this->Makefile = 0;
+ this->Makefile = mf;
this->OldStyle = true;
+ this->Properties.SetCMakeInstance(mf->GetCMakeInstance());
+ this->Backtrace = new cmListFileBacktrace;
+ this->Makefile->GetBacktrace(*this->Backtrace);
}
//----------------------------------------------------------------------------
cmTest::~cmTest()
{
+ delete this->Backtrace;
+}
+
+//----------------------------------------------------------------------------
+cmListFileBacktrace const& cmTest::GetBacktrace() const
+{
+ return *this->Backtrace;
}
//----------------------------------------------------------------------------
@@ -89,13 +99,6 @@ void cmTest::AppendProperty(const char* prop, const char* value)
}
//----------------------------------------------------------------------------
-void cmTest::SetMakefile(cmMakefile* mf)
-{
- this->Makefile = mf;
- this->Properties.SetCMakeInstance(mf->GetCMakeInstance());
-}
-
-//----------------------------------------------------------------------------
void cmTest::DefineProperties(cmake *cm)
{
cm->DefineProperty