summaryrefslogtreecommitdiff
path: root/Source/cmCreateTestSourceList.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-06-19 12:52:16 -0400
committerKen Martin <ken.martin@kitware.com>2002-06-19 12:52:16 -0400
commit38145ad5a4cceebc17f434e3c1068c8cc5bb5461 (patch)
tree78650f5ab7a85a37082fcd0b1c15a7f8c840bce4 /Source/cmCreateTestSourceList.cxx
parentb15808caffd9d32caf75ac892a7b149ff3486ab8 (diff)
downloadcmake-38145ad5a4cceebc17f434e3c1068c8cc5bb5461.tar.gz
modified create test source to create a vector
Diffstat (limited to 'Source/cmCreateTestSourceList.cxx')
-rw-r--r--Source/cmCreateTestSourceList.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmCreateTestSourceList.cxx b/Source/cmCreateTestSourceList.cxx
index 5fc64b7cd3..d320f52232 100644
--- a/Source/cmCreateTestSourceList.cxx
+++ b/Source/cmCreateTestSourceList.cxx
@@ -257,15 +257,17 @@ bool cmCreateTestSourceList::InitialPass(std::vector<std::string> const& argsIn)
fout.close();
// Create the source list
-
cmSourceFile cfile;
+ std::string sourceListValue;
+
cfile.SetIsAnAbstractClass(false);
cfile.SetName(args[1].c_str(),
m_Makefile->GetCurrentOutputDirectory(),
"cxx",
false);
- m_Makefile->AddSource(cfile, sourceList);
-
+ m_Makefile->AddSource(cfile);
+ sourceListValue = args[1].c_str();
+
for(i = testsBegin; i != tests.end(); ++i)
{
cmSourceFile cfile;
@@ -274,9 +276,12 @@ bool cmCreateTestSourceList::InitialPass(std::vector<std::string> const& argsIn)
m_Makefile->GetCurrentDirectory(),
m_Makefile->GetSourceExtensions(),
m_Makefile->GetHeaderExtensions());
- m_Makefile->AddSource(cfile, sourceList);
+ m_Makefile->AddSource(cfile);
+ sourceListValue += ";";
+ sourceListValue += *i;
}
+ m_Makefile->AddDefinition(sourceList, sourceListValue.c_str());
return true;
}