summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmElseCommand.h6
-rw-r--r--Source/cmEndIfCommand.h6
-rw-r--r--Source/cmIfCommand.h6
3 files changed, 18 insertions, 0 deletions
diff --git a/Source/cmElseCommand.h b/Source/cmElseCommand.h
index b418b7e..ba97d1f 100644
--- a/Source/cmElseCommand.h
+++ b/Source/cmElseCommand.h
@@ -41,6 +41,12 @@ public:
virtual bool Invoke(std::vector<std::string>& args);
/**
+ * This determines if the command gets propagated down
+ * to makefiles located in subdirectories.
+ */
+ virtual bool IsInherited() {return true;}
+
+ /**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ELSE";}
diff --git a/Source/cmEndIfCommand.h b/Source/cmEndIfCommand.h
index ad399c7..c19aac1 100644
--- a/Source/cmEndIfCommand.h
+++ b/Source/cmEndIfCommand.h
@@ -41,6 +41,12 @@ public:
virtual bool Invoke(std::vector<std::string>& args);
/**
+ * This determines if the command gets propagated down
+ * to makefiles located in subdirectories.
+ */
+ virtual bool IsInherited() {return true;}
+
+ /**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ENDIF";}
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index 1c9bef3..eff940a 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -72,6 +72,12 @@ public:
}
/**
+ * This determines if the command gets propagated down
+ * to makefiles located in subdirectories.
+ */
+ virtual bool IsInherited() {return true;}
+
+ /**
* More documentation.
*/
virtual const char* GetFullDocumentation()