cmTarget: Make GetTargetSourceFileFlags const.
This commit is contained in:
parent
50d152035d
commit
04d398d356
|
@ -91,8 +91,8 @@ public:
|
||||||
}
|
}
|
||||||
~cmTargetInternals();
|
~cmTargetInternals();
|
||||||
typedef cmTarget::SourceFileFlags SourceFileFlags;
|
typedef cmTarget::SourceFileFlags SourceFileFlags;
|
||||||
std::map<cmSourceFile const*, SourceFileFlags> SourceFlagsMap;
|
mutable std::map<cmSourceFile const*, SourceFileFlags> SourceFlagsMap;
|
||||||
bool SourceFileFlagsConstructed;
|
mutable bool SourceFileFlagsConstructed;
|
||||||
|
|
||||||
// The backtrace when the target was created.
|
// The backtrace when the target was created.
|
||||||
cmListFileBacktrace Backtrace;
|
cmListFileBacktrace Backtrace;
|
||||||
|
@ -577,7 +577,7 @@ void cmTarget::ProcessSourceExpression(std::string const& expr)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
struct cmTarget::SourceFileFlags
|
struct cmTarget::SourceFileFlags
|
||||||
cmTarget::GetTargetSourceFileFlags(const cmSourceFile* sf)
|
cmTarget::GetTargetSourceFileFlags(const cmSourceFile* sf) const
|
||||||
{
|
{
|
||||||
struct SourceFileFlags flags;
|
struct SourceFileFlags flags;
|
||||||
this->ConstructSourceFileFlags();
|
this->ConstructSourceFileFlags();
|
||||||
|
@ -591,7 +591,7 @@ cmTarget::GetTargetSourceFileFlags(const cmSourceFile* sf)
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmTarget::ConstructSourceFileFlags()
|
void cmTarget::ConstructSourceFileFlags() const
|
||||||
{
|
{
|
||||||
if(this->Internal->SourceFileFlagsConstructed)
|
if(this->Internal->SourceFileFlagsConstructed)
|
||||||
{
|
{
|
||||||
|
|
|
@ -162,7 +162,8 @@ public:
|
||||||
/**
|
/**
|
||||||
* Get the flags for a given source file as used in this target
|
* Get the flags for a given source file as used in this target
|
||||||
*/
|
*/
|
||||||
struct SourceFileFlags GetTargetSourceFileFlags(const cmSourceFile* sf);
|
struct SourceFileFlags
|
||||||
|
GetTargetSourceFileFlags(const cmSourceFile* sf) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add sources to the target.
|
* Add sources to the target.
|
||||||
|
@ -742,7 +743,7 @@ private:
|
||||||
friend class cmTargetTraceDependencies;
|
friend class cmTargetTraceDependencies;
|
||||||
cmTargetInternalPointer Internal;
|
cmTargetInternalPointer Internal;
|
||||||
|
|
||||||
void ConstructSourceFileFlags();
|
void ConstructSourceFileFlags() const;
|
||||||
void ComputeVersionedName(std::string& vName,
|
void ComputeVersionedName(std::string& vName,
|
||||||
std::string const& prefix,
|
std::string const& prefix,
|
||||||
std::string const& base,
|
std::string const& base,
|
||||||
|
|
Loading…
Reference in New Issue