summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2015-08-13 10:03:02 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2015-08-25 19:53:51 (GMT)
commit48fe617e667d2e6b1e471cfb56346de51f984ba5 (patch)
treeec16d9400d62f5f26775ac7cf4699c5162d61e5c /Source/cmTarget.cxx
parentd2c2319d6479d4319ef298f6178b00e953a9b179 (diff)
downloadCMake-48fe617e667d2e6b1e471cfb56346de51f984ba5.zip
CMake-48fe617e667d2e6b1e471cfb56346de51f984ba5.tar.gz
CMake-48fe617e667d2e6b1e471cfb56346de51f984ba5.tar.bz2
Fix installation of iOS targets (#12506)
Since cmTarget::ComputeOutputDir results can be used in CMake code of script cmake_install.cmake and in Xcode internals, string ${EFFECTIVE_PLATFORM_NAME} should be used instead of $(EFFECTIVE_PLATFORM_NAME) because it works for both. Value of CMAKE_CFG_INTDIR can't be used in BUILD_TYPE argument of install command since it contains $(EFFECTIVE_PLATFORM_NAME) (e.g. equals to `Release-iphoneos`, `Debug-iphoneos`, etc.).
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index da314a6..d6d509c 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -3568,7 +3568,7 @@ bool cmTarget::ComputeOutputDir(const std::string& config,
{
bool iosPlatform = this->Makefile->PlatformIsAppleIos();
std::string suffix =
- usesDefaultOutputDir && iosPlatform ? "$(EFFECTIVE_PLATFORM_NAME)" : "";
+ usesDefaultOutputDir && iosPlatform ? "${EFFECTIVE_PLATFORM_NAME}" : "";
this->Makefile->GetGlobalGenerator()->
AppendDirectoryForConfig("/", conf, suffix, out);
}