cmGeneratorTarget: Make GetSourceDepends const.

This commit is contained in:
Stephen Kelly
2014-03-13 00:19:50 +01:00
parent 04cf50ff62
commit dcfcd23ed5
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -87,7 +87,8 @@ public:
void LookupObjectLibraries();
/** Get sources that must be built before the given source. */
std::vector<cmSourceFile*> const* GetSourceDepends(cmSourceFile* sf) const;
std::vector<cmSourceFile*> const*
GetSourceDepends(cmSourceFile const* sf) const;
/**
* Flags for a given source file as used in this target. Typically assigned
@@ -121,7 +122,7 @@ public:
private:
friend class cmTargetTraceDependencies;
struct SourceEntry { std::vector<cmSourceFile*> Depends; };
typedef std::map<cmSourceFile*, SourceEntry> SourceEntriesType;
typedef std::map<cmSourceFile const*, SourceEntry> SourceEntriesType;
SourceEntriesType SourceEntries;
std::map<cmSourceFile const*, std::string> Objects;