summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-05 17:19:50 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-10 09:03:48 (GMT)
commit3e428fdcb4640411f8cbc4adc42c30b9c8b8032e (patch)
tree17340538688948d3a8057daaac73672f761296d3 /Source/cmGeneratorTarget.cxx
parent110fd2fba1cbd6c3d89f5460d3f58a94d52d4546 (diff)
downloadCMake-3e428fdcb4640411f8cbc4adc42c30b9c8b8032e.zip
CMake-3e428fdcb4640411f8cbc4adc42c30b9c8b8032e.tar.gz
CMake-3e428fdcb4640411f8cbc4adc42c30b9c8b8032e.tar.bz2
cmGeneratorTarget: Move IsImportedSharedLibWithoutSOName from cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 8663593..8ff78e0 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1338,6 +1338,19 @@ bool cmGeneratorTarget::IsChrpathUsed(const std::string& config) const
return false;
}
+//----------------------------------------------------------------------------
+bool cmGeneratorTarget::IsImportedSharedLibWithoutSOName(
+ const std::string& config) const
+{
+ if(this->IsImported() && this->GetType() == cmTarget::SHARED_LIBRARY)
+ {
+ if(cmTarget::ImportInfo const* info = this->Target->GetImportInfo(config))
+ {
+ return info->NoSOName;
+ }
+ }
+ return false;
+}
//----------------------------------------------------------------------------
bool cmGeneratorTarget::HasMacOSXRpathInstallNameDir(