diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-09 21:45:55 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-12 16:39:59 (GMT) |
commit | 526cc7dc52673f1eeb1055ce381e0551f763daea (patch) | |
tree | db90d5ce3d8b6cbef17be99d5773208d90d5c95a /Source/cmGeneratorTarget.cxx | |
parent | 8d2e3e53b903b1ee38292b6bcdf3e4eeb5399a05 (diff) | |
download | CMake-526cc7dc52673f1eeb1055ce381e0551f763daea.zip CMake-526cc7dc52673f1eeb1055ce381e0551f763daea.tar.gz CMake-526cc7dc52673f1eeb1055ce381e0551f763daea.tar.bz2 |
cmGeneratorTarget: Move HasImportLibrary from cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 90acca6..582282b 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -5487,7 +5487,7 @@ cmGeneratorTarget::GetPDBDirectory(const std::string& config) const //---------------------------------------------------------------------------- bool cmGeneratorTarget::HasImplibGNUtoMS() const { - return this->Target->HasImportLibrary() + return this->HasImportLibrary() && this->GetPropertyAsBool("GNUtoMS"); } @@ -5504,3 +5504,11 @@ bool cmGeneratorTarget::GetImplibGNUtoMS(std::string const& gnuName, } return false; } + +//---------------------------------------------------------------------------- +bool cmGeneratorTarget::HasImportLibrary() const +{ + return (this->Target->IsDLLPlatform() && + (this->GetType() == cmTarget::SHARED_LIBRARY || + this->Target->IsExecutableWithExports())); +} |