summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-24 14:39:20 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-02-24 14:39:20 (GMT)
commit2186cff370c4ce775a670c9294b77a325e331fd8 (patch)
treeaf240ed57e43daff30e271cfc6016012044780ef /Source
parent0f48312386d77b6e95bd23ced8d7ff2a51928738 (diff)
parent572797f9843a76a101e2092c6ba31b5453bd23c6 (diff)
downloadCMake-2186cff370c4ce775a670c9294b77a325e331fd8.zip
CMake-2186cff370c4ce775a670c9294b77a325e331fd8.tar.gz
CMake-2186cff370c4ce775a670c9294b77a325e331fd8.tar.bz2
Merge topic 'xcode-remove-reftype'
572797f9 Xcode: Write refType only for Xcode 1.5
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());