mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 18:51:05 -05:00
Merge branch 'custom-command-expand-empty' into release-3.11
Merge-request: !2074
This commit is contained in:
@@ -40,6 +40,14 @@ cmCustomCommandGenerator::cmCustomCommandGenerator(cmCustomCommand const& cc,
|
||||
argv.push_back(std::move(parsed_arg));
|
||||
}
|
||||
}
|
||||
|
||||
// Later code assumes at least one entry exists, but expanding
|
||||
// lists on an empty command may have left this empty.
|
||||
// FIXME: Should we define behavior for removing empty commands?
|
||||
if (argv.empty()) {
|
||||
argv.push_back(std::string());
|
||||
}
|
||||
|
||||
this->CommandLines.push_back(std::move(argv));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user