always convert to output path

This commit is contained in:
Ken Martin 2002-09-24 13:17:39 -04:00
parent 9314bb40ad
commit 72054b95fd
1 changed files with 1 additions and 1 deletions

View File

@ -94,9 +94,9 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv)
if (fullPath.size() > 1) if (fullPath.size() > 1)
{ {
std::string finalCommand = fullPath; std::string finalCommand = fullPath;
finalCommand = cmSystemTools::ConvertToOutputPath(fullPath.c_str());
if(runArgs.size()) if(runArgs.size())
{ {
finalCommand = cmSystemTools::ConvertToOutputPath(fullPath.c_str());
finalCommand += runArgs; finalCommand += runArgs;
} }
cmSystemTools::RunCommand(finalCommand.c_str(), output, retVal, 0, false); cmSystemTools::RunCommand(finalCommand.c_str(), output, retVal, 0, false);