summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorAmitha Perera <perera@cs.rpi.edu>2002-05-01 20:33:27 (GMT)
committerAmitha Perera <perera@cs.rpi.edu>2002-05-01 20:33:27 (GMT)
commit099436db26c0a46b3df4b5aaf51e8777e35bfe06 (patch)
treecdcbf890cd3e3cc61b9cb398d1a00ee1d53325be /Source/cmTarget.cxx
parent36f80fe6c8f7593462c450789b01f4eb37792996 (diff)
downloadCMake-099436db26c0a46b3df4b5aaf51e8777e35bfe06.zip
CMake-099436db26c0a46b3df4b5aaf51e8777e35bfe06.tar.gz
CMake-099436db26c0a46b3df4b5aaf51e8777e35bfe06.tar.bz2
ENH: Make the LinkLibraries command contribute dependencies towards AddLibraries.
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 )
{