diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-09 22:15:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-19 18:27:41 (GMT) |
commit | 7550879f570502f31aeafbd48f04bafd17234696 (patch) | |
tree | 4dfcc2a21c477df2c429fa10b3d85f5422887f0e /Source/cmGeneratorTarget.cxx | |
parent | 88d10d55ac68f2251a549cf09292af8a1fb66ba3 (diff) | |
download | CMake-7550879f570502f31aeafbd48f04bafd17234696.zip CMake-7550879f570502f31aeafbd48f04bafd17234696.tar.gz CMake-7550879f570502f31aeafbd48f04bafd17234696.tar.bz2 |
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 ab0d02b..7e457bb 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")); +} |