diff options
author | Amitha Perera <perera@cs.rpi.edu> | 2002-05-01 20:33:27 (GMT) |
---|---|---|
committer | Amitha Perera <perera@cs.rpi.edu> | 2002-05-01 20:33:27 (GMT) |
commit | 099436db26c0a46b3df4b5aaf51e8777e35bfe06 (patch) | |
tree | cdcbf890cd3e3cc61b9cb398d1a00ee1d53325be /Source/cmTarget.cxx | |
parent | 36f80fe6c8f7593462c450789b01f4eb37792996 (diff) | |
download | CMake-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.cxx | 23 |
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 ) { |