mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-15 03:02:22 -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
236 B
C
15 lines
236 B
C
#if defined(_WIN32) && defined(COMPILE_FOR_SHARED_LIB)
|
|
#define EXPORT __declspec(dllexport)
|
|
#else
|
|
#define EXPORT
|
|
#endif
|
|
|
|
extern int a(void);
|
|
EXPORT int b()
|
|
{
|
|
return a();
|
|
}
|
|
#ifndef REQUIRED
|
|
#error "REQUIRED needs to be defined"
|
|
#endif
|