summaryrefslogtreecommitdiff
path: root/Source/cmDynamicLoader.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-09-24 09:24:39 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2002-09-24 09:24:39 -0400
commit94f1e8f5c59564e7a8986fbe20a2d7661237883b (patch)
treeeb4433f97407e226c4267acbc81ec3655ce7e2c8 /Source/cmDynamicLoader.cxx
parent305081002eafab32d071ce10d723727d1d81d6e1 (diff)
downloadcmake-94f1e8f5c59564e7a8986fbe20a2d7661237883b.tar.gz
fix for cygwin and nmake that does not define WIN32
Diffstat (limited to 'Source/cmDynamicLoader.cxx')
-rw-r--r--Source/cmDynamicLoader.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx
index 6c6dfc9dc5..c997e38128 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()