Răsfoiți Sursa

BUG: Report error when a target does not exist.

Brad King 20 ani în urmă
părinte
comite
b3b341cbbe
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      Source/cmSetTargetPropertiesCommand.cxx

+ 1 - 0
Source/cmSetTargetPropertiesCommand.cxx

@@ -92,6 +92,7 @@ bool cmSetTargetPropertiesCommand::InitialPass(
       std::string message = "Can not find target to add properties to: ";
       message += args[i];
       this->SetError(message.c_str());
+      return false;
       }
     }
   return true;