diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-09 21:44:11 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-19 18:27:40 (GMT) |
commit | 8e20ea6ef2258867bd6554536fa7b914f266df96 (patch) | |
tree | d999ce9be3f883ce7a4357a8c2b3ccf3b4fd38ef /Source/cmGeneratorTarget.cxx | |
parent | a527abf0995fc1bdd45afdb20e80b728dd0ef045 (diff) | |
download | CMake-8e20ea6ef2258867bd6554536fa7b914f266df96.zip CMake-8e20ea6ef2258867bd6554536fa7b914f266df96.tar.gz CMake-8e20ea6ef2258867bd6554536fa7b914f266df96.tar.bz2 |
cmGeneratorTarget: Move IsLinkable from cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 03c950e..bdf29b2 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -5936,3 +5936,14 @@ std::string cmGeneratorTarget::GetSupportDirectory() const #endif return dir; } + +//---------------------------------------------------------------------------- +bool cmGeneratorTarget::IsLinkable() const +{ + return (this->GetType() == cmState::STATIC_LIBRARY || + this->GetType() == cmState::SHARED_LIBRARY || + this->GetType() == cmState::MODULE_LIBRARY || + this->GetType() == cmState::UNKNOWN_LIBRARY || + this->GetType() == cmState::INTERFACE_LIBRARY || + this->Target->IsExecutableWithExports()); +} |