Przeglądaj źródła

Makefile: Fix regression in target-bound custom command COMMENT output

Fix a logic typo introduced by commit v3.1.0-rc1~781^2 (Generalize
cmCustomCommandGenerator to more fields, 2014-03-10).
Nils Gladitz 11 lat temu
rodzic
commit
eeb2831b5f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Source/cmLocalUnixMakefileGenerator3.cxx

+ 1 - 1
Source/cmLocalUnixMakefileGenerator3.cxx

@@ -1076,7 +1076,7 @@ cmLocalUnixMakefileGenerator3
   if(echo_comment)
   if(echo_comment)
     {
     {
     const char* comment = ccg.GetComment();
     const char* comment = ccg.GetComment();
-    if(comment && !*comment)
+    if(comment && *comment)
       {
       {
       this->AppendEcho(commands, comment,
       this->AppendEcho(commands, comment,
                        cmLocalUnixMakefileGenerator3::EchoGenerate);
                        cmLocalUnixMakefileGenerator3::EchoGenerate);