summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-01 13:53:30 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-09-01 13:53:30 (GMT)
commitdd2b88777fa549bf261a84a0914a5a8171ae0a56 (patch)
treec53d82b24bfe5b4fd732a7ffaf4e76260cf028d1 /Source/cmGlobalGenerator.cxx
parent0e08ab6ef165791e582fce9aecc2a288075a7da4 (diff)
parentad262917d96aa4d6faeff3c9dfecf684cebbe123 (diff)
downloadCMake-dd2b88777fa549bf261a84a0914a5a8171ae0a56.zip
CMake-dd2b88777fa549bf261a84a0914a5a8171ae0a56.tar.gz
CMake-dd2b88777fa549bf261a84a0914a5a8171ae0a56.tar.bz2
Merge topic 'fix-ios-install'
ad262917 Xcode: Add unit test for iOS project install (#12506) 48fe617e Fix installation of iOS targets (#12506) d2c2319d Replace CMAKE_XCODE_EFFECTIVE_PLATFORMS with call to PlatformIsAppleIos
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index ec36d2a..49f3b29 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -2422,7 +2422,17 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
if ( cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[0] != '.' )
{
std::string cfgArg = "-DBUILD_TYPE=";
- cfgArg += mf->GetDefinition("CMAKE_CFG_INTDIR");
+ bool iosPlatform = mf->PlatformIsAppleIos();
+ if(iosPlatform)
+ {
+ cfgArg += "$(CONFIGURATION)";
+ singleLine.push_back(cfgArg);
+ cfgArg = "-DEFFECTIVE_PLATFORM_NAME=$(EFFECTIVE_PLATFORM_NAME)";
+ }
+ else
+ {
+ cfgArg += mf->GetDefinition("CMAKE_CFG_INTDIR");
+ }
singleLine.push_back(cfgArg);
}
singleLine.push_back("-P");