summaryrefslogtreecommitdiff
path: root/Source/cmCreateTestSourceList.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-08-11 16:58:09 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2004-08-11 16:58:09 -0400
commitb41d447935c518c5d3352284afd8b24732985417 (patch)
tree9bef9c2493dc6b330a7edccfec40d19c8e09e556 /Source/cmCreateTestSourceList.cxx
parentbb32a51825648f5fe44c12df8a3becd5aa88061e (diff)
downloadcmake-b41d447935c518c5d3352284afd8b24732985417.tar.gz
ENH: use GetRequiredDefinition instead of GetDefinition and crash
Diffstat (limited to 'Source/cmCreateTestSourceList.cxx')
-rw-r--r--Source/cmCreateTestSourceList.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCreateTestSourceList.cxx b/Source/cmCreateTestSourceList.cxx
index 5dddb9e8e7..04b1dad02d 100644
--- a/Source/cmCreateTestSourceList.cxx
+++ b/Source/cmCreateTestSourceList.cxx
@@ -82,7 +82,7 @@ bool cmCreateTestSourceList::InitialPass(std::vector<std::string> const& args)
++i;
std::string configFile =
- m_Makefile->GetDefinition("CMAKE_ROOT");
+ m_Makefile->GetRequiredDefinition("CMAKE_ROOT");
configFile += "/Templates/TestDriver.cxx.in";
// Create the test driver file