summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-05-03 20:34:05 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-05-03 20:34:05 (GMT)
commitcdf550de13a021d9d695618a9da97ae951efe9a0 (patch)
treeaf2897380246a51e8d35b06a40086cf29ce1d362 /Source/cmTarget.h
parent399e1c0f3e67e40f7b6a2fcd7046f195f81fc4a7 (diff)
downloadCMake-cdf550de13a021d9d695618a9da97ae951efe9a0.zip
CMake-cdf550de13a021d9d695618a9da97ae951efe9a0.tar.gz
CMake-cdf550de13a021d9d695618a9da97ae951efe9a0.tar.bz2
ENH: rework library depend stuff
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 0fcf353..37a2de5 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -80,8 +80,18 @@ public:
typedef std::vector<std::pair<std::string,LinkLibraryType> > LinkLibraries;
const LinkLibraries &GetLinkLibraries() const {return m_LinkLibraries;}
+ void AddLinkLibrary(cmMakefile& mf,
+ const char *target, const char* lib,
+ LinkLibraryType llt);
+
+ void AddLinkLibrary(const std::string& lib,
+ LinkLibraryType llt);
+
+ void MergeLinkLibraries( cmMakefile& mf, const char* selfname, const LinkLibraries& libs );
+
const std::vector<std::string>& GetLinkDirectories() const {return m_LinkDirectories;}
- void AddLinkDirectory(const char* d) { m_LinkDirectories.push_back(d);}
+
+ void AddLinkDirectory(const char* d);
/**
* Set the path where this target should be installed. This is relative to
@@ -90,13 +100,7 @@ public:
std::string GetInstallPath() const {return m_InstallPath;}
void SetInstallPath(const char *name) {m_InstallPath = name;}
- void AddLinkLibrary(cmMakefile& mf,
- const char *target, const char* lib,
- LinkLibraryType llt);
-
- void AddLinkLibrary(const std::string& lib,
- LinkLibraryType llt);
-
+
/**
* Generate the SourceFilesList from the SourceLists. This should only be
* done once to be safe.
@@ -148,8 +152,7 @@ private:
* path.
*/
void GatherDependencies( const cmMakefile& mf, const std::string& lib,
- DependencyMap& dep_map,
- LibTypeMap& lib_map, bool addLibDirs );
+ DependencyMap& dep_map );
/**
* Returns true if lib1 depends on lib2 according to \param
@@ -166,6 +169,7 @@ private:
TargetType m_TargetType;
std::vector<cmSourceFile*> m_SourceFiles;
LinkLibraries m_LinkLibraries;
+ std::set<std::string> m_PrevLinkedLibraries;
std::vector<std::string> m_LinkDirectories;
bool m_InAll;
std::string m_InstallPath;