Sfoglia il codice sorgente

cmAddCustomCommandCommand: use `cmStrCat`

Ben Boeckel 2 anni fa
parent
commit
45eff9145e
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Source/cmAddCustomCommandCommand.cxx

+ 2 - 2
Source/cmAddCustomCommandCommand.cxx

@@ -189,8 +189,8 @@ bool cmAddCustomCommandCommand(std::vector<std::string> const& args,
       } else if (copy == keyDEPFILE) {
         doing = doing_depfile;
         if (!mf.GetGlobalGenerator()->SupportsCustomCommandDepfile()) {
-          status.SetError("Option DEPFILE not supported by " +
-                          mf.GetGlobalGenerator()->GetName());
+          status.SetError(cmStrCat("Option DEPFILE not supported by ",
+                                   mf.GetGlobalGenerator()->GetName()));
           return false;
         }
       } else if (copy == keyJOB_POOL) {