diff options
author | Brad King <brad.king@kitware.com> | 2011-05-20 12:06:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-05-20 12:06:35 (GMT) |
commit | cdc2b41cc2161b21192460bb92da40c6d4c6107f (patch) | |
tree | 7144de0e6e1173052209163e18067d955ccf5b42 /Tests/CompileCommandOutput | |
parent | 7039d1fd9b817a3ab6c81b4ef313a0bd6e19778d (diff) | |
download | CMake-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/CompileCommandOutput')
-rw-r--r-- | Tests/CompileCommandOutput/relative.h | 12 |
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(); |