mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
When linking to a shared library target that has version symlinks, add an order-only dependency on the build statement that creates the links. This ensures that the links exist for use at runtime. Fixes: #19774
18 lines
241 B
C
18 lines
241 B
C
#ifndef REQUIRED
|
|
# error "REQUIRED not defined"
|
|
#endif
|
|
|
|
#if defined(_WIN32)
|
|
# define IMPORT __declspec(dllimport)
|
|
#else
|
|
# define IMPORT
|
|
#endif
|
|
|
|
IMPORT int a(void);
|
|
extern int required(void);
|
|
|
|
int main(void)
|
|
{
|
|
return required() + a();
|
|
}
|