summaryrefslogtreecommitdiff
path: root/Modules/CompilerId
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-10-22 09:37:28 -0400
committerBrad King <brad.king@kitware.com>2014-10-22 10:16:07 -0400
commitc48f6e1229b2487f98426eeced5da069a70efbf5 (patch)
treed7624359f1c0d8310fa5452bd3b08e79d0f86006 /Modules/CompilerId
parent54ff77dc621a91302abad0ab38d9bd26de8914b9 (diff)
downloadcmake-c48f6e1229b2487f98426eeced5da069a70efbf5.tar.gz
Xcode: Fix compiler id detection for iOS tools (#15214)
Since commit 0cce556b (Xcode: Use sysroot and deployment target to identify compiler, 2014-04-29) our compiler id detection project uses the target platform SDK in case Xcode selects a different compiler based on it. Now the compiler id project actually compiles with the target compiler and SDK when cross-compiling. The iOS tools do not support the 'com.apple.product-type.tool' product type we use in our compiler id detection project. When targeting iPhone, use product type 'com.apple.product-type.bundle.unit-test' instead.
Diffstat (limited to 'Modules/CompilerId')
-rw-r--r--Modules/CompilerId/Xcode-3.pbxproj.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CompilerId/Xcode-3.pbxproj.in b/Modules/CompilerId/Xcode-3.pbxproj.in
index eabfc6b1c1..cceffa0a16 100644
--- a/Modules/CompilerId/Xcode-3.pbxproj.in
+++ b/Modules/CompilerId/Xcode-3.pbxproj.in
@@ -29,7 +29,7 @@
);
name = CompilerId@id_lang@;
productName = CompilerId@id_lang@;
- productType = "com.apple.product-type.tool";
+ productType = "@id_product_type@";
};
08FB7793FE84155DC02AAC07 = {
isa = PBXProject;