summaryrefslogtreecommitdiffstats
path: root/Source/cmTryRunCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-08-30 17:58:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-08-30 17:58:46 (GMT)
commit62ae06081eff9881a1ff119ff6397521d9ce5900 (patch)
tree52175f97d12d2351c30b7f8f67db603bdc5f5160 /Source/cmTryRunCommand.cxx
parentfeb2d86f26b40b7b12431c21a3e60d03f6c1ed79 (diff)
downloadCMake-62ae06081eff9881a1ff119ff6397521d9ce5900.zip
CMake-62ae06081eff9881a1ff119ff6397521d9ce5900.tar.gz
CMake-62ae06081eff9881a1ff119ff6397521d9ce5900.tar.bz2
ENH: use native Deployment and Development directories
Diffstat (limited to 'Source/cmTryRunCommand.cxx')
-rw-r--r--Source/cmTryRunCommand.cxx21
1 files changed, 16 insertions, 5 deletions
diff --git a/Source/cmTryRunCommand.cxx b/Source/cmTryRunCommand.cxx
index b9d9b4c..b4f1456 100644
--- a/Source/cmTryRunCommand.cxx
+++ b/Source/cmTryRunCommand.cxx
@@ -91,11 +91,22 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv)
}
else
{
- cmOStringStream emsg;
- emsg << "Unable to find executable for TRY_RUN: tried \""
- << command1 << "\" and \""
- << command2 << "\".";
- cmSystemTools::Error(emsg.str().c_str());
+ std::string command3 = binaryDirectory;
+ command3 += "/Development/cmTryCompileExec";
+ command3 += cmSystemTools::GetExecutableExtension();
+ if(cmSystemTools::FileExists(command3.c_str()))
+ {
+ fullPath = cmSystemTools::CollapseFullPath(command3.c_str());
+ }
+ else
+ {
+ cmOStringStream emsg;
+ emsg << "Unable to find executable for TRY_RUN: tried \""
+ << command1 << "\" and \""
+ << command2 << "\" and \""
+ << command3 << "\".";
+ cmSystemTools::Error(emsg.str().c_str());
+ }
}
}
if (fullPath.size() > 1)