summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallTargetGenerator.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-02-17 15:25:29 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-02-28 13:24:03 (GMT)
commitfcbd723a5085c11c57ec966f8aea605a55d0bdd5 (patch)
treec3063c72d82eaf6044342ac1ad8bdd7bcd1e4758 /Source/cmInstallTargetGenerator.cxx
parent22a491c3ea790532511e8de09692ccd002447c9d (diff)
downloadCMake-fcbd723a5085c11c57ec966f8aea605a55d0bdd5.zip
CMake-fcbd723a5085c11c57ec966f8aea605a55d0bdd5.tar.gz
CMake-fcbd723a5085c11c57ec966f8aea605a55d0bdd5.tar.bz2
Enhance support functions
* Avoid duplicate definiitions for IsExecutableWithExports, etc... * Add helper IsApple()
Diffstat (limited to 'Source/cmInstallTargetGenerator.cxx')
-rw-r--r--Source/cmInstallTargetGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx
index 16c5002..e837cc3 100644
--- a/Source/cmInstallTargetGenerator.cxx
+++ b/Source/cmInstallTargetGenerator.cxx
@@ -784,7 +784,7 @@ void cmInstallTargetGenerator::AddStripRule(std::ostream& os, Indent indent,
}
// Don't handle OSX Bundles.
- if (this->Target->Target->GetMakefile()->IsOn("APPLE") &&
+ if (this->Target->IsApple() &&
this->Target->GetPropertyAsBool("MACOSX_BUNDLE")) {
return;
}
@@ -796,7 +796,7 @@ void cmInstallTargetGenerator::AddStripRule(std::ostream& os, Indent indent,
std::string stripArgs;
// macOS 'strip' is picky, executables need '-u -r' and dylibs need '-x'.
- if (this->Target->Target->GetMakefile()->IsOn("APPLE")) {
+ if (this->Target->IsApple()) {
if (this->Target->GetType() == cmStateEnums::SHARED_LIBRARY ||
this->Target->GetType() == cmStateEnums::MODULE_LIBRARY) {
stripArgs = "-x ";
@@ -822,7 +822,7 @@ void cmInstallTargetGenerator::AddRanlibRule(std::ostream& os, Indent indent,
// Perform post-installation processing on the file depending
// on its type.
- if (!this->Target->Target->GetMakefile()->IsOn("APPLE")) {
+ if (!this->Target->IsApple()) {
return;
}