summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-03-03 16:14:59 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-03-05 13:39:56 (GMT)
commit2e24123186b09cceef805dd88daaac8536770176 (patch)
treed578ec5dd4044a037bb823dfc4b68b5168e1038f /Source
parent0a9945cb8d6c1568d7a120eaaf0b02b8d078ecbf (diff)
downloadCMake-2e24123186b09cceef805dd88daaac8536770176.zip
CMake-2e24123186b09cceef805dd88daaac8536770176.tar.gz
CMake-2e24123186b09cceef805dd88daaac8536770176.tar.bz2
Apple: text-based stubs: manage imported configurations mapping
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 0bb91b6..ec87271 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -3012,7 +3012,9 @@ bool cmTarget::GetMappedConfig(std::string const& desired_config, cmValue& loc,
bool allowImp = (this->IsDLLPlatform() &&
(this->GetType() == cmStateEnums::SHARED_LIBRARY ||
this->IsExecutableWithExports())) ||
- (this->IsAIX() && this->IsExecutableWithExports());
+ (this->IsAIX() && this->IsExecutableWithExports()) ||
+ (this->GetMakefile()->PlatformSupportsAppleTextStubs() &&
+ this->IsSharedLibraryWithExports());
// If a mapping was found, check its configurations.
for (auto mci = mappedConfigs.begin();