183b95098e
In cmComputeLinkDepends we compute the transitive closure of private shared library dependencies. When a shared library is added to this closure we must follow all of its dependencies whether they are private or public. Previously we only followed the private dependencies. Fix the implementation to follow the public dependencies too. Also extend the ExportImport test to cover this case.
11 lines
337 B
C
11 lines
337 B
C
#if defined(_WIN32) || defined(__CYGWIN__)
|
|
# define testLib3Imp_EXPORT __declspec(dllexport)
|
|
# define testLib3ImpDep_IMPORT __declspec(dllimport)
|
|
#else
|
|
# define testLib3Imp_EXPORT
|
|
# define testLib3ImpDep_IMPORT
|
|
#endif
|
|
|
|
testLib3ImpDep_IMPORT int testLib3ImpDep(void);
|
|
testLib3Imp_EXPORT int testLib3Imp(void) { return testLib3ImpDep(); }
|