mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 04:10:05 -06:00
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; }
|