From 38145ad5a4cceebc17f434e3c1068c8cc5bb5461 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 19 Jun 2002 12:52:16 -0400 Subject: modified create test source to create a vector --- Source/cmCreateTestSourceList.cxx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Source/cmCreateTestSourceList.cxx') 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 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 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; } -- cgit v1.2.1