Selaa lähdekoodia

Fix use of cmTypeMacro in new command classes

Both commit 8a37ebec (Add the target_include_directories command,
2013-01-01) and commit fc61a7a7 (Add the target_compile_definitions
command, 2013-01-08) added command implementations deriving from the new
cmTargetPropCommandBase class.  Fix cmTypeMacro declarations of the
inheritance relationship.
Brad King 12 vuotta sitten
vanhempi
sitoutus
9397270d73

+ 1 - 1
Source/cmTargetCompileDefinitionsCommand.h

@@ -75,7 +75,7 @@ public:
       ;
     }
 
-  cmTypeMacro(cmTargetCompileDefinitionsCommand, cmCommand);
+  cmTypeMacro(cmTargetCompileDefinitionsCommand, cmTargetPropCommandBase);
 
 private:
   virtual void HandleImportedTarget(const std::string &tgt);

+ 1 - 1
Source/cmTargetIncludeDirectoriesCommand.h

@@ -79,7 +79,7 @@ public:
       ;
     }
 
-  cmTypeMacro(cmTargetIncludeDirectoriesCommand, cmCommand);
+  cmTypeMacro(cmTargetIncludeDirectoriesCommand, cmTargetPropCommandBase);
 
 private:
   virtual void HandleImportedTarget(const std::string &tgt);

+ 1 - 0
Source/cmTargetPropCommandBase.h

@@ -31,6 +31,7 @@ public:
   bool HandleArguments(std::vector<std::string> const& args,
                            const char *prop, ArgumentFlags flags = NO_FLAGS);
 
+  cmTypeMacro(cmTargetPropCommandBase, cmCommand);
 protected:
   std::string Property;
   cmTarget *Target;