diff options
author | Brad King <brad.king@kitware.com> | 2009-08-11 13:07:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-08-11 13:07:28 (GMT) |
commit | 0bc050677f71651ae7ef403ec063af06b6ecd751 (patch) | |
tree | 9114397bec4c196b3b8cdd9ae7a91371ac35719b /Source/cmMakefile.cxx | |
parent | 6e3c6a1a8028bf02785468fc23244ef5403beb55 (diff) | |
download | CMake-0bc050677f71651ae7ef403ec063af06b6ecd751.zip CMake-0bc050677f71651ae7ef403ec063af06b6ecd751.tar.gz CMake-0bc050677f71651ae7ef403ec063af06b6ecd751.tar.bz2 |
Record backtrace for every add_test command
We teach cmTest to hold a backtrace for the add_test command that
created it. This will be used later to report context for errors at
generate time.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 5057ef4..ef9a726 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -3314,9 +3314,8 @@ cmTest* cmMakefile::CreateTest(const char* testName) { return test; } - test = new cmTest; + test = new cmTest(this); test->SetName(testName); - test->SetMakefile(this); this->Tests[testName] = test; return test; } |