BUG: The source file may be specified with an extension.
This commit is contained in:
parent
543b4ca1b9
commit
c8924864fd
|
@ -37,7 +37,7 @@ bool cmSourceFilesFlagsCommand::InitialPass(std::vector<std::string> const&
|
||||||
for(std::vector<cmSourceFile>::iterator i = l->second.begin();
|
for(std::vector<cmSourceFile>::iterator i = l->second.begin();
|
||||||
i != l->second.end(); i++)
|
i != l->second.end(); i++)
|
||||||
{
|
{
|
||||||
if(i->GetSourceName() == (*j))
|
if(i->GetSourceName() == (*j) || i->GetSourceName()+"."+i->GetSourceExtension() == (*j))
|
||||||
{
|
{
|
||||||
i->SetCompileFlags(flags.c_str());
|
i->SetCompileFlags(flags.c_str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue