summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestHandler.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-13 19:48:46 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-13 22:16:20 (GMT)
commit20b95ef8c83fbcb7705e72c85c9de18ff420562f (patch)
tree7241038f255ebe43bd6fefd8e2efd7533ae3167d /Source/CTest/cmCTestTestHandler.cxx
parent841164cb36650574a1a7363c78e4cdf28d5d37fd (diff)
downloadCMake-20b95ef8c83fbcb7705e72c85c9de18ff420562f.zip
CMake-20b95ef8c83fbcb7705e72c85c9de18ff420562f.tar.gz
CMake-20b95ef8c83fbcb7705e72c85c9de18ff420562f.tar.bz2
cmState: Initialize default definitions immediately.
Don't leave this as cmMakefile responsibility.
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 968a307..fa3b416 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -1590,6 +1590,7 @@ void cmCTestTestHandler::GetListOfTests()
cmake cm;
cm.SetHomeDirectory("");
cm.SetHomeOutputDirectory("");
+ cm.GetCurrentSnapshot().SetDefaultDefinitions();
cmGlobalGenerator gg(&cm);
cmsys::auto_ptr<cmMakefile> mf(new cmMakefile(&gg, cm.GetCurrentSnapshot()));
mf->AddDefinition("CTEST_CONFIGURATION_TYPE",