MCPcopy Create free account
hub / github.com/Kitware/CMake / MaybeConvertWatcomShellCommand

Method MaybeConvertWatcomShellCommand

Source/cmLocalUnixMakefileGenerator3.cxx:645–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643}
644
645std::string cmLocalUnixMakefileGenerator3::MaybeConvertWatcomShellCommand(
646 std::string const& cmd)
647{
648 if (this->IsWatcomWMake() && cmSystemTools::FileIsFullPath(cmd) &&
649 cmd.find_first_of("( )") != std::string::npos) {
650 // On Watcom WMake use the windows short path for the command
651 // name. This is needed to avoid funny quoting problems on
652 // lines with shell redirection operators.
653 std::string scmd;
654 if (cmSystemTools::GetShortPath(cmd, scmd)) {
655 return this->ConvertToOutputFormat(scmd, cmOutputConverter::SHELL);
656 }
657 }
658 return std::string();
659}
660
661void cmLocalUnixMakefileGenerator3::WriteMakeVariables(
662 std::ostream& makefileStream)

Callers 2

WriteMakeVariablesMethod · 0.95
AppendCustomCommandMethod · 0.95

Calls 3

IsWatcomWMakeMethod · 0.80
find_first_ofMethod · 0.80
ConvertToOutputFormatMethod · 0.45

Tested by

no test coverage detected