summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-05-20 12:06:35 (GMT)
committerBrad King <brad.king@kitware.com>2011-05-20 12:06:35 (GMT)
commitcdc2b41cc2161b21192460bb92da40c6d4c6107f (patch)
tree7144de0e6e1173052209163e18067d955ccf5b42 /Tests
parent7039d1fd9b817a3ab6c81b4ef313a0bd6e19778d (diff)
downloadCMake-cdc2b41cc2161b21192460bb92da40c6d4c6107f.zip
CMake-cdc2b41cc2161b21192460bb92da40c6d4c6107f.tar.gz
CMake-cdc2b41cc2161b21192460bb92da40c6d4c6107f.tar.bz2
Fix CompileCommandOutput test build on Windows
Add dllexport markup for the shared library.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileCommandOutput/relative.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/Tests/CompileCommandOutput/relative.h b/Tests/CompileCommandOutput/relative.h
index 2168035..ddfe551 100644
--- a/Tests/CompileCommandOutput/relative.h
+++ b/Tests/CompileCommandOutput/relative.h
@@ -1 +1,11 @@
-void relative();
+#if defined(_WIN32)
+# ifdef test2_EXPORTS
+# define TEST2_EXPORT __declspec(dllexport)
+# else
+# define TEST2_EXPORT __declspec(dllimport)
+# endif
+#else
+# define TEST2_EXPORT
+#endif
+
+TEST2_EXPORT void relative();