summaryrefslogtreecommitdiffstats
path: root/Source/cmTryRunCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-24 17:17:39 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-24 17:17:39 (GMT)
commit72054b95fdac6013a042cfee433eb474757a1450 (patch)
tree2b467feeb04786703abb42e247cfd7c5eeba02ad /Source/cmTryRunCommand.cxx
parent9314bb40add37045e4b2fe47234f8cb0d0e71ad6 (diff)
downloadCMake-72054b95fdac6013a042cfee433eb474757a1450.zip
CMake-72054b95fdac6013a042cfee433eb474757a1450.tar.gz
CMake-72054b95fdac6013a042cfee433eb474757a1450.tar.bz2
always convert to output path
Diffstat (limited to 'Source/cmTryRunCommand.cxx')
-rw-r--r--Source/cmTryRunCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx
index 250945f..bdbe6a4 100644
--- a/Source/cmTryRunCommand.cxx
+++ b/Source/cmTryRunCommand.cxx
@@ -94,9 +94,9 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv)
if (fullPath.size() > 1)
{
std::string finalCommand = fullPath;
+ finalCommand = cmSystemTools::ConvertToOutputPath(fullPath.c_str());
if(runArgs.size())
{
- finalCommand = cmSystemTools::ConvertToOutputPath(fullPath.c_str());
finalCommand += runArgs;
}
cmSystemTools::RunCommand(finalCommand.c_str(), output, retVal, 0, false);