Commit 5690cafd authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: fix crash for old style scripts

parent 5d5fd641
......@@ -1317,8 +1317,14 @@ void cmCTest::AddSiteProperties(std::ostream& ostr)
cmCTestScriptHandler* ch =
const char* subproject =
ch->GetCMake()->GetProperty("SubProject", cmProperty::GLOBAL);
cmake* cm = ch->GetCMake();
// if no CMake then this is the old style script and props like
// this will not work anyway.
const char* subproject = cm->GetProperty("SubProject", cmProperty::GLOBAL);
ostr << "<Subproject name=\"" << subproject << "\">\n";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment