diff --git a/Source/cmSetTargetPropertiesCommand.cxx b/Source/cmSetTargetPropertiesCommand.cxx index e7532b344..41fce7964 100644 --- a/Source/cmSetTargetPropertiesCommand.cxx +++ b/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;