Browse Source

ENH: Made UTILITY_SOURCE command inherited, just like FIND_PROGRAM.

Brad King 25 years ago
parent
commit
f2cd113761
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Source/cmUtilitySourceCommand.h

+ 6 - 0
Source/cmUtilitySourceCommand.h

@@ -45,6 +45,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.
    */