summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2016-12-03 22:46:15 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2016-12-03 23:13:08 (GMT)
commit7ecac703cec8bde71f8d11c1a8fa34bfa077edee (patch)
treea065bc78168db60cb827dfbe487fa49ede356a20 /Source
parentc45b767a8c2120ba61b9fafa31d8db37a919d62a (diff)
downloadCMake-7ecac703cec8bde71f8d11c1a8fa34bfa077edee.zip
CMake-7ecac703cec8bde71f8d11c1a8fa34bfa077edee.tar.gz
CMake-7ecac703cec8bde71f8d11c1a8fa34bfa077edee.tar.bz2
Xcode: Add target property to override productType
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 50197c9..82ca7a8 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -2340,6 +2340,10 @@ const char* cmGlobalXCodeGenerator::GetTargetFileType(
const char* cmGlobalXCodeGenerator::GetTargetProductType(
cmGeneratorTarget* target)
{
+ if (const char* e = target->GetProperty("XCODE_PRODUCT_TYPE")) {
+ return e;
+ }
+
switch (target->GetType()) {
case cmStateEnums::OBJECT_LIBRARY:
case cmStateEnums::STATIC_LIBRARY: