summaryrefslogtreecommitdiffstats
path: root/Source/cmaketest.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-10-03 19:49:52 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-10-03 19:49:52 (GMT)
commit8f652aad2176055ff7f76e76fcb14389bafcc543 (patch)
tree27cf83147f35dafce3563197a5dc41836c5ca252 /Source/cmaketest.cxx
parente2eaa3efba61a39fcf5e69d0773d9c4aad653d84 (diff)
downloadCMake-8f652aad2176055ff7f76e76fcb14389bafcc543.zip
CMake-8f652aad2176055ff7f76e76fcb14389bafcc543.tar.gz
CMake-8f652aad2176055ff7f76e76fcb14389bafcc543.tar.bz2
ENH: fixes for borland compiler testing
Diffstat (limited to 'Source/cmaketest.cxx')
-rw-r--r--Source/cmaketest.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx
index 8a6b5df..8756601 100644
--- a/Source/cmaketest.cxx
+++ b/Source/cmaketest.cxx
@@ -61,7 +61,7 @@ int main (int argc, char *argv[])
// now build the test
std::string makeCommand = MAKEPROGRAM;
makeCommand += " ";
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__BORLANDC__)
makeCommand += executableName;
makeCommand += ".dsw /MAKE \"ALL_BUILD - Debug\" /REBUILD";
#else
@@ -117,6 +117,15 @@ int main (int argc, char *argv[])
{
fullPath = cmSystemTools::CollapseFullPath(tryPath.c_str());
}
+ if(!cmSystemTools::FileExists(fullPath.c_str()))
+ {
+ std::cerr << "Could not find path to executable, perhaps it was not built: " <<
+ executableName << "\n";
+ std::cerr << "Error: " << fullPath.c_str() << " execution failed\n";
+ // return to the original directory
+ cmSystemTools::ChangeDirectory(cwd.c_str());
+ return 1;
+ }
if (!cmSystemTools::RunCommand(fullPath.c_str(), output))
{
std::cerr << "Error: " << fullPath.c_str() << " execution failed\n";