mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-10 23:43:58 +03:00
Xcode: Write refType only for Xcode 1.5
This field is not expected by newer versions.
This commit is contained in:
1 parent
7e32bd945a
commit
572797f984
1 file changed
+4
-1
@@ -2805,7 +2805,10 @@ cmGlobalXCodeGenerator::CreateXCodeTarget(cmGeneratorTarget* gtgt,
|
||||
fullName = gtgt->GetFullName(defConfig.c_str());
|
||||
}
|
||||
fileRef->AddAttribute("path", this->CreateString(fullName.c_str()));
|
||||
fileRef->AddAttribute("refType", this->CreateString("0"));
|
||||
if(this->XcodeVersion == 15)
|
||||
{
|
||||
fileRef->AddAttribute("refType", this->CreateString("0"));
|
||||
}
|
||||
fileRef->AddAttribute("sourceTree",
|
||||
this->CreateString("BUILT_PRODUCTS_DIR"));
|
||||
fileRef->SetComment(gtgt->GetName().c_str());
|
||||
|
||||
Reference in new issue
Block a user