ENH: fix source extensions fror txt on xcode

This commit is contained in:
Bill Hoffman 2007-02-20 13:52:29 -05:00
parent 06027d1d2b
commit d5cb0f48b7

View File

@ -515,11 +515,16 @@ cmGlobalXCodeGenerator::CreateXCodeSourceFile(cmLocalGenerator* lg,
{
sourcecode += ".c.c";
}
else
else if(strcmp(lang, "CXX") == 0)
{
sourcecode += ".cpp.cpp";
}
else
{
sourcecode += ext;
sourcecode += ".";
sourcecode += ext;
}
fileRef->AddAttribute("lastKnownFileType",
this->CreateString(sourcecode.c_str()));
std::string path =