mirror of
https://github.com/reactos/CMake.git
synced 2025-01-12 22:41:28 +00:00
d05e98f8d7
Linking to a Windows shared library (.dll) requires only its import library (.lib). This teaches CMake to recognize SHARED IMPORTED library targets that set only IMPORTED_IMPLIB and not IMPORTED_LOCATION.
8 lines
178 B
C
8 lines
178 B
C
#if defined(_WIN32) || defined(__CYGWIN__)
|
|
# define testLib5_EXPORT __declspec(dllexport)
|
|
#else
|
|
# define testLib5_EXPORT
|
|
#endif
|
|
|
|
testLib5_EXPORT int testLib5(void) { return 0; }
|