summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-04 16:39:05 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-04 16:39:05 (GMT)
commit4eb5f1bef6d2e082e1221afb3fdfe4598dab350e (patch)
treedf2dd8272ee43b2a86a8e471795989178d1bc44b /Source/cmTarget.h
parent053519b390ced4e2ed702f00a00d23ad344a3da3 (diff)
downloadCMake-4eb5f1bef6d2e082e1221afb3fdfe4598dab350e.zip
CMake-4eb5f1bef6d2e082e1221afb3fdfe4598dab350e.tar.gz
CMake-4eb5f1bef6d2e082e1221afb3fdfe4598dab350e.tar.bz2
Cleanup cmTarget source file list representation
This teaches cmTarget to use a set of cmSourceFile pointers to guarantee unique insertion of source files in a target. The order of insertion is still preserved in the SourceFiles vector.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 7b8c2ba..5054f2d 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -119,9 +119,8 @@ public:
/**
* Get the list of the source files used by this target
*/
- std::vector<cmSourceFile*> const &GetSourceFiles()
- {return this->SourceFiles;}
- void AddSourceFile(cmSourceFile* sf) { this->SourceFiles.push_back(sf); }
+ std::vector<cmSourceFile*> const& GetSourceFiles();
+ void AddSourceFile(cmSourceFile* sf);
/**
* Flags for a given source file as used in this target. Typically assigned
@@ -531,6 +530,7 @@ private:
std::vector<cmCustomCommand> PostBuildCommands;
TargetType TargetTypeValue;
std::vector<cmSourceFile*> SourceFiles;
+ std::set<cmSourceFile*> SourceFileSet;
LinkLibraryVectorType LinkLibraries;
LinkLibraryVectorType PrevLinkedLibraries;
bool LinkLibrariesAnalyzed;