summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx23
1 files changed, 4 insertions, 19 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 8410f0e..2896f46 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -90,25 +90,7 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf,
{
m_LinkLibraries.push_back( std::pair<std::string, cmTarget::LinkLibraryType>(lib,llt) );
- // Add the explicit dependency information for this target. This is
- // simply a set of libraries separated by ";". There should always
- // be a trailing ";". These library names are not canonical, in that
- // they may be "-framework x", "-ly", "/path/libz.a", etc.
- std::string cache_name( target );
- cache_name += "_LIB_DEPENDS";
- std::string dependencies;
- const char* old_val = mf.GetDefinition( cache_name.c_str() );
- if( old_val )
- {
- dependencies += old_val;
- }
- if( dependencies.find( lib ) == std::string::npos )
- {
- dependencies += lib;
- dependencies += ";";
- }
- mf.AddCacheDefinition( cache_name.c_str(), dependencies.c_str(),
- "Dependencies for the target", cmCacheManager::INTERNAL );
+ mf.AddDependencyToCache( target, lib );
}
bool cmTarget::HasCxx() const
@@ -125,6 +107,9 @@ bool cmTarget::HasCxx() const
}
+
+
+
void
cmTarget::AnalyzeLibDependencies( const cmMakefile& mf )
{