diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2016-02-08 18:39:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-02-24 14:35:54 (GMT) |
commit | 572797f9843a76a101e2092c6ba31b5453bd23c6 (patch) | |
tree | 081fa274fa5c65e70e3923c4a85d136fda4ed27b /Source/cmGlobalXCodeGenerator.cxx | |
parent | 7e32bd945a9f32144ac63fdcd085197658229f9c (diff) | |
download | CMake-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/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 5 |
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()); |