mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
VS: only add custom command line if it is not empty
This commit is contained in:
@@ -191,13 +191,17 @@ std::string cmLocalVisualStudioGenerator::ConstructScript(
|
||||
|
||||
// Write each command on a single line.
|
||||
for (unsigned int c = 0; c < ccg.GetNumberOfCommands(); ++c) {
|
||||
// Add this command line.
|
||||
std::string cmd = ccg.GetCommand(c);
|
||||
|
||||
if (cmd.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Start a new line.
|
||||
script += newline;
|
||||
newline = newline_text;
|
||||
|
||||
// Add this command line.
|
||||
std::string cmd = ccg.GetCommand(c);
|
||||
|
||||
// Use "call " before any invocations of .bat or .cmd files
|
||||
// invoked as custom commands.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user