summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2016-02-08 18:39:05 (GMT)
committerBrad King <brad.king@kitware.com>2016-02-24 14:35:54 (GMT)
commit572797f9843a76a101e2092c6ba31b5453bd23c6 (patch)
tree081fa274fa5c65e70e3923c4a85d136fda4ed27b /Source
parent7e32bd945a9f32144ac63fdcd085197658229f9c (diff)
downloadCMake-572797f9843a76a101e2092c6ba31b5453bd23c6.zip
CMake-572797f9843a76a101e2092c6ba31b5453bd23c6.tar.gz
CMake-572797f9843a76a101e2092c6ba31b5453bd23c6.tar.bz2
Xcode: Write refType only for Xcode 1.5
This field is not expected by newer versions.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 526e32f..ef18729 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -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());