summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2016-12-03 22:45:55 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2016-12-03 23:13:51 (GMT)
commit0ae4632119ba5300995ec5ddd5513a44bfd2a198 (patch)
tree4254f92ed3932f0749b73dfbe96a343c2e4a5c32 /Source
parent7ecac703cec8bde71f8d11c1a8fa34bfa077edee (diff)
downloadCMake-0ae4632119ba5300995ec5ddd5513a44bfd2a198.zip
CMake-0ae4632119ba5300995ec5ddd5513a44bfd2a198.tar.gz
CMake-0ae4632119ba5300995ec5ddd5513a44bfd2a198.tar.bz2
Xcode: Add target property to override explicitFileType
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 82ca7a8..736aa91 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -2313,6 +2313,10 @@ const char* cmGlobalXCodeGenerator::GetTargetLinkFlagsVar(
const char* cmGlobalXCodeGenerator::GetTargetFileType(
cmGeneratorTarget* target)
{
+ if (const char* e = target->GetProperty("XCODE_EXPLICIT_FILE_TYPE")) {
+ return e;
+ }
+
switch (target->GetType()) {
case cmStateEnums::OBJECT_LIBRARY:
case cmStateEnums::STATIC_LIBRARY: