ENH: fix source extensions fror txt on xcode
This commit is contained in:
parent
06027d1d2b
commit
d5cb0f48b7
@ -515,11 +515,16 @@ cmGlobalXCodeGenerator::CreateXCodeSourceFile(cmLocalGenerator* lg,
|
|||||||
{
|
{
|
||||||
sourcecode += ".c.c";
|
sourcecode += ".c.c";
|
||||||
}
|
}
|
||||||
else
|
else if(strcmp(lang, "CXX") == 0)
|
||||||
{
|
{
|
||||||
sourcecode += ".cpp.cpp";
|
sourcecode += ".cpp.cpp";
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sourcecode += ext;
|
||||||
|
sourcecode += ".";
|
||||||
|
sourcecode += ext;
|
||||||
|
}
|
||||||
fileRef->AddAttribute("lastKnownFileType",
|
fileRef->AddAttribute("lastKnownFileType",
|
||||||
this->CreateString(sourcecode.c_str()));
|
this->CreateString(sourcecode.c_str()));
|
||||||
std::string path =
|
std::string path =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user