Просмотр исходного кода

Add an AppendDefines std::string overload.

This makes it easier to use with cmGeneratorTarget::GetCompileDefinitions.
Stephen Kelly 13 лет назад
Родитель
Сommit
b7e48e0acb
1 измененных файлов с 5 добавлено и 0 удалено
  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.
    */