summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmDynamicLoader.cxx4
-rw-r--r--Source/cmGlobalGenerator.cxx3
2 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx
index 6c6dfc9..c997e38 100644
--- a/Source/cmDynamicLoader.cxx
+++ b/Source/cmDynamicLoader.cxx
@@ -344,7 +344,11 @@ const char* cmDynamicLoader::LibPrefix()
const char* cmDynamicLoader::LibExtension()
{
+#ifdef __CYGWIN__
+ return ".dll";
+#else
return ".so";
+#endif
}
const char* cmDynamicLoader::LastError()
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.");