summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-09-24 13:24:39 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-09-24 13:24:39 (GMT)
commit94f1e8f5c59564e7a8986fbe20a2d7661237883b (patch)
treeeb4433f97407e226c4267acbc81ec3655ce7e2c8 /Source/cmGlobalGenerator.cxx
parent305081002eafab32d071ce10d723727d1d81d6e1 (diff)
downloadCMake-94f1e8f5c59564e7a8986fbe20a2d7661237883b.zip
CMake-94f1e8f5c59564e7a8986fbe20a2d7661237883b.tar.gz
CMake-94f1e8f5c59564e7a8986fbe20a2d7661237883b.tar.bz2
fix for cygwin and nmake that does not define WIN32
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 437ab70..45c03c7 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -166,7 +166,7 @@ int cmGlobalGenerator::TryCompile(const char *, const char *bindir,
{
makeCommand += " ";
makeCommand += target;
-#ifdef WIN32
+#if defined(_WIN32) || defined(__CYGWIN__)
makeCommand += ".exe";
#endif // WIN32
}
@@ -175,7 +175,6 @@ int cmGlobalGenerator::TryCompile(const char *, const char *bindir,
makeCommand += " all";
}
int retVal;
-
if (!cmSystemTools::RunCommand(makeCommand.c_str(), *output, retVal, 0, false))
{
cmSystemTools::Error("Generator: execution of make failed.");