summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
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)