summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 0b636ef..7f00483 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -21,6 +21,7 @@
#include "cmPropertyMap.h"
class cmake;
+class cmMakefile;
/** \class cmSourceFile
* \brief Represent a class loaded from a makefile.
@@ -114,6 +115,10 @@ public:
// Define the properties
static void DefineProperties(cmake *cm);
+ ///! Set the cmMakefile that owns this target
+ void SetMakefile(cmMakefile *mf);
+ cmMakefile *GetMakefile() { return this->Makefile;};
+
private:
cmPropertyMap Properties;
cmCustomCommand *CustomCommand;
@@ -122,6 +127,10 @@ private:
std::string SourceExtension;
std::vector<std::string> Depends;
std::string SourceNameWithoutLastExtension;
+
+ // The cmMakefile instance that owns this source file. This should
+ // always be set.
+ cmMakefile* Makefile;
};
#endif