more changes to handle full paths correctly
This commit is contained in:
parent
59c70d9df7
commit
adbb5c5e79
|
@ -1722,8 +1722,8 @@ cmSourceFile* cmMakefile::GetOrCreateSource(const char* sourceName,
|
||||||
cmSourceFile* cmMakefile::AddSource(cmSourceFile const&sf)
|
cmSourceFile* cmMakefile::AddSource(cmSourceFile const&sf)
|
||||||
{
|
{
|
||||||
// check to see if it exists
|
// check to see if it exists
|
||||||
cmSourceFile* ret = this->GetSource(sf.GetSourceName().c_str());
|
cmSourceFile* ret = this->GetSource(sf.GetFullPath().c_str());
|
||||||
if(ret && ret->GetSourceExtension() == sf.GetSourceExtension())
|
if(ret)
|
||||||
{
|
{
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue