diff options
Diffstat (limited to 'Source/cmTryRunCommand.cxx')
-rw-r--r-- | Source/cmTryRunCommand.cxx | 21 |
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) |