diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-10 00:15:38 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-19 20:27:41 +0200 |
commit | 7550879f570502f31aeafbd48f04bafd17234696 (patch) | |
tree | 4dfcc2a21c477df2c429fa10b3d85f5422887f0e /Source/cmGeneratorTarget.cxx | |
parent | 88d10d55ac68f2251a549cf09292af8a1fb66ba3 (diff) | |
download | cmake-7550879f570502f31aeafbd48f04bafd17234696.tar.gz |
cmGeneratorTarget: Move IsXCTestOnApple from cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index ab0d02bcc3..7e457bb8a4 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -1587,7 +1587,7 @@ std::string cmGeneratorTarget::GetCFBundleDirectory(const std::string& config, const char *ext = this->GetProperty("BUNDLE_EXTENSION"); if (!ext) { - if (this->Target->IsXCTestOnApple()) + if (this->IsXCTestOnApple()) { ext = "xctest"; } @@ -5962,3 +5962,10 @@ bool cmGeneratorTarget::IsAppBundleOnApple() const this->Makefile->IsOn("APPLE") && this->GetPropertyAsBool("MACOSX_BUNDLE")); } + +//---------------------------------------------------------------------------- +bool cmGeneratorTarget::IsXCTestOnApple() const +{ + return (this->Target->IsCFBundleOnApple() && + this->GetPropertyAsBool("XCTEST")); +} |