diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2016-12-03 22:46:15 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2016-12-03 23:13:08 (GMT) |
commit | 7ecac703cec8bde71f8d11c1a8fa34bfa077edee (patch) | |
tree | a065bc78168db60cb827dfbe487fa49ede356a20 /Source/cmGlobalXCodeGenerator.cxx | |
parent | c45b767a8c2120ba61b9fafa31d8db37a919d62a (diff) | |
download | CMake-7ecac703cec8bde71f8d11c1a8fa34bfa077edee.zip CMake-7ecac703cec8bde71f8d11c1a8fa34bfa077edee.tar.gz CMake-7ecac703cec8bde71f8d11c1a8fa34bfa077edee.tar.bz2 |
Xcode: Add target property to override productType
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 4 |
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: |