mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Note: This only allows `OBJECT` libraries to be on the right-hand side of `target_link_libraries` but still does not link its object-files to the target on the left-hand side. Issue: #14778
15 lines
239 B
C
15 lines
239 B
C
#if defined(_WIN32) && defined(COMPILE_FOR_SHARED_LIB)
|
|
#define IMPORT __declspec(dllimport)
|
|
#else
|
|
#define IMPORT
|
|
#endif
|
|
|
|
extern IMPORT int b(void);
|
|
int main()
|
|
{
|
|
return b();
|
|
}
|
|
#ifndef REQUIRED
|
|
#error "REQUIRED needs to be defined"
|
|
#endif
|