summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-08-21 15:57:12 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-08-21 15:57:12 (GMT)
commit34c7c1b78d347f30ecb5124db7f365ffb385b5a1 (patch)
tree0df921f74f1540b0b7471cfd34ba4426628e3e3e /Source/cmStandardIncludes.h
parent38dfd36fdaad9c7e3767189b23d74c4953614139 (diff)
downloadCMake-34c7c1b78d347f30ecb5124db7f365ffb385b5a1.zip
CMake-34c7c1b78d347f30ecb5124db7f365ffb385b5a1.tar.gz
CMake-34c7c1b78d347f30ecb5124db7f365ffb385b5a1.tar.bz2
made CMakeLib shared on windows
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 224e196..942f53b 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -21,6 +21,17 @@
#ifndef cmStandardIncludes_h
#define cmStandardIncludes_h
+/* CM_EXPORT is used by the plugin API */
+#ifdef _WIN32
+#ifdef CMakeLib_EXPORTS
+ #define CM_EXPORT __declspec( dllexport )
+#else
+ #define CM_EXPORT __declspec( dllimport )
+#endif
+#else
+#define CM_EXPORT
+#endif
+
// include configure generated header to define
// CMAKE_NO_ANSI_STREAM_HEADERS and CMAKE_NO_STD_NAMESPACE
#if defined(CMAKE_HAS_AUTOCONF) || defined(CMAKE_BUILD_WITH_CMAKE)