summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFilesFlagsCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSourceFilesFlagsCommand.cxx')
-rw-r--r--Source/cmSourceFilesFlagsCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSourceFilesFlagsCommand.cxx b/Source/cmSourceFilesFlagsCommand.cxx
index 8ecbe0b..458cbd5 100644
--- a/Source/cmSourceFilesFlagsCommand.cxx
+++ b/Source/cmSourceFilesFlagsCommand.cxx
@@ -37,7 +37,7 @@ bool cmSourceFilesFlagsCommand::InitialPass(std::vector<std::string> const&
for(std::vector<cmSourceFile>::iterator i = l->second.begin();
i != l->second.end(); i++)
{
- if(i->GetSourceName() == (*j))
+ if(i->GetSourceName() == (*j) || i->GetSourceName()+"."+i->GetSourceExtension() == (*j))
{
i->SetCompileFlags(flags.c_str());
}