mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
use empty method to check for emptyness
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
bool cmIncludeCommand::InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus&)
|
||||
{
|
||||
if (args.size() < 1 || args.size() > 4) {
|
||||
if (args.empty() || args.size() > 4) {
|
||||
this->SetError("called with wrong number of arguments. "
|
||||
"include() only takes one file.");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user