mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 19:43:23 +08:00
Fix CompileCommandOutput test build on Windows
Add dllexport markup for the shared library.
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user