ENH: Speedup by only getting the source once
This commit is contained in:
parent
c09f6172a4
commit
030dd4b91e
|
@ -207,11 +207,15 @@ void cmTarget::GenerateSourceFilesFromSourceLists( cmMakefile &mf)
|
||||||
|
|
||||||
// Next if one wasn't found then assume it is a single class
|
// Next if one wasn't found then assume it is a single class
|
||||||
// check to see if it is an existing source file
|
// check to see if it is an existing source file
|
||||||
if (!done && mf.GetSource(temps.c_str()))
|
if (!done)
|
||||||
{
|
{
|
||||||
m_SourceFiles.push_back(mf.GetSource(temps.c_str()));
|
cmSourceFile* sourceFile = mf.GetSource(temps.c_str());
|
||||||
|
if ( sourceFile )
|
||||||
|
{
|
||||||
|
m_SourceFiles.push_back(sourceFile);
|
||||||
done = 1;
|
done = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// if it wasn't a source file listed with the makefile
|
// if it wasn't a source file listed with the makefile
|
||||||
// see if it is a variable. This is for old CMake 1.2 compatability
|
// see if it is a variable. This is for old CMake 1.2 compatability
|
||||||
|
|
Loading…
Reference in New Issue