mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
use empty method to check for emptyness
This commit is contained in:
@@ -27,7 +27,7 @@ bool cmBuildCommand::InitialPass(std::vector<std::string> const& args,
|
||||
|
||||
bool cmBuildCommand::MainSignature(std::vector<std::string> const& args)
|
||||
{
|
||||
if (args.size() < 1) {
|
||||
if (args.empty()) {
|
||||
this->SetError("requires at least one argument naming a CMake variable");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user