|
|
@@ -663,6 +663,8 @@ int cmInstrumentation::InstrumentCommand(
|
|
|
for (auto const& item : data.value()) {
|
|
|
if (item.first == "role" && !item.second.empty()) {
|
|
|
command_type = item.second;
|
|
|
+ } else if (item.first == "showOnly") {
|
|
|
+ root[item.first] = item.second == "1" ? true : false;
|
|
|
} else if (!item.second.empty()) {
|
|
|
root[item.first] = item.second;
|
|
|
}
|
|
|
@@ -743,7 +745,11 @@ std::string cmInstrumentation::GetCommandStr(
|
|
|
{
|
|
|
std::string command_str;
|
|
|
for (size_t i = 0; i < args.size(); ++i) {
|
|
|
- command_str = cmStrCat(command_str, '"', args[i], '"');
|
|
|
+ if (args[i].find(' ') != std::string::npos) {
|
|
|
+ command_str = cmStrCat(command_str, '"', args[i], '"');
|
|
|
+ } else {
|
|
|
+ command_str = cmStrCat(command_str, args[i]);
|
|
|
+ }
|
|
|
if (i < args.size() - 1) {
|
|
|
command_str = cmStrCat(command_str, ' ');
|
|
|
}
|