1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-20 04:24:36 +08:00

Fix CompileCommandOutput test build on Windows

Add dllexport markup for the shared library.
This commit is contained in:
Brad King
2011-05-20 08:06:35 -04:00
parent 7039d1fd9b
commit cdc2b41cc2

View File

@@ -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();