Procházet zdrojové kódy

Add an AppendDefines std::string overload.

This makes it easier to use with cmGeneratorTarget::GetCompileDefinitions.
Stephen Kelly před 13 roky
rodič
revize
b7e48e0acb
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      Source/cmLocalGenerator.h

+ 5 - 0
Source/cmLocalGenerator.h

@@ -157,6 +157,11 @@ public:
    */
   void AppendDefines(std::set<std::string>& defines,
                      const char* defines_list);
+  void AppendDefines(std::set<std::string>& defines,
+                     std::string defines_list)
+  {
+    this->AppendDefines(defines, defines_list.c_str());
+  }
   /**
    * Join a set of defines into a definesString with a space separator.
    */