diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-23 17:10:28 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-23 21:22:34 (GMT) |
commit | a65a404186c69fabc61ea87459e22110c998fb1b (patch) | |
tree | 00de54305b8c3e9e9403b303f6717a48f205ec90 /Source/cmTarget.cxx | |
parent | ff91071a14885b9e031b262e5d576b8f174870a2 (diff) | |
download | CMake-a65a404186c69fabc61ea87459e22110c998fb1b.zip CMake-a65a404186c69fabc61ea87459e22110c998fb1b.tar.gz CMake-a65a404186c69fabc61ea87459e22110c998fb1b.tar.bz2 |
cmTarget: Inline private HasImportLibrary method
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index a90e1b5..52e8a40 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -545,13 +545,6 @@ bool cmTarget::IsExecutableWithExports() const this->GetPropertyAsBool("ENABLE_EXPORTS")); } -bool cmTarget::HasImportLibrary() const -{ - return (impl->DLLPlatform && - (this->GetType() == cmStateEnums::SHARED_LIBRARY || - this->IsExecutableWithExports())); -} - bool cmTarget::IsFrameworkOnApple() const { return ((this->GetType() == cmStateEnums::SHARED_LIBRARY || @@ -1875,7 +1868,9 @@ bool cmTarget::GetMappedConfig(std::string const& desired_config, // If we needed to find one of the mapped configurations but did not // On a DLL platform there may be only IMPORTED_IMPLIB for a shared // library or an executable with exports. - bool allowImp = this->HasImportLibrary(); + bool allowImp = (impl->DLLPlatform && + (this->GetType() == cmStateEnums::SHARED_LIBRARY || + this->IsExecutableWithExports())); // If a mapping was found, check its configurations. for (std::vector<std::string>::const_iterator mci = mappedConfigs.begin(); |