Commit c8924864 authored by Amitha Perera's avatar Amitha Perera
Browse files

BUG: The source file may be specified with an extension.

parent 543b4ca1
...@@ -37,7 +37,7 @@ bool cmSourceFilesFlagsCommand::InitialPass(std::vector<std::string> const& ...@@ -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());
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment