mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'xcode-message-extension'
9ac0c393Help: Add notes for topic 'xcode-message-extension'0ae46321Xcode: Add target property to override explicitFileType7ecac703Xcode: Add target property to override productType
This commit is contained in:
@@ -294,6 +294,8 @@ Properties on Targets
|
||||
/prop_tgt/WIN32_EXECUTABLE
|
||||
/prop_tgt/WINDOWS_EXPORT_ALL_SYMBOLS
|
||||
/prop_tgt/XCODE_ATTRIBUTE_an-attribute
|
||||
/prop_tgt/XCODE_EXPLICIT_FILE_TYPE
|
||||
/prop_tgt/XCODE_PRODUCT_TYPE
|
||||
/prop_tgt/XCTEST
|
||||
|
||||
.. _`Test Properties`:
|
||||
|
||||
8
Help/prop_tgt/XCODE_EXPLICIT_FILE_TYPE.rst
Normal file
8
Help/prop_tgt/XCODE_EXPLICIT_FILE_TYPE.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
XCODE_EXPLICIT_FILE_TYPE
|
||||
------------------------
|
||||
|
||||
Set the Xcode ``explicitFileType`` attribute on its reference to a
|
||||
target. CMake computes a default based on target type but
|
||||
can be told explicitly with this property.
|
||||
|
||||
See also :prop_tgt:`XCODE_PRODUCT_TYPE`.
|
||||
8
Help/prop_tgt/XCODE_PRODUCT_TYPE.rst
Normal file
8
Help/prop_tgt/XCODE_PRODUCT_TYPE.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
XCODE_PRODUCT_TYPE
|
||||
------------------
|
||||
|
||||
Set the Xcode ``productType`` attribute on its reference to a
|
||||
target. CMake computes a default based on target type but
|
||||
can be told explicitly with this property.
|
||||
|
||||
See also :prop_tgt:`XCODE_EXPLICIT_FILE_TYPE`.
|
||||
7
Help/release/dev/xcode-message-extension.rst
Normal file
7
Help/release/dev/xcode-message-extension.rst
Normal file
@@ -0,0 +1,7 @@
|
||||
xcode-message-extension
|
||||
-----------------------
|
||||
|
||||
* New :prop_tgt:`XCODE_PRODUCT_TYPE` and :prop_tgt:`XCODE_EXPLICIT_FILE_TYPE`
|
||||
target properties were created to tell the :generator:`Xcode` generator
|
||||
to use custom values of the corresponding attributes for a target in the
|
||||
generated Xcode project.
|
||||
@@ -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:
|
||||
@@ -2340,6 +2344,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:
|
||||
|
||||
Reference in New Issue
Block a user