summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport/Export/testLib3Imp.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-12-14 16:28:42 (GMT)
committerBrad King <brad.king@kitware.com>2011-12-14 16:33:01 (GMT)
commit183b95098ea4102da5ca510e8c7a36106a5c257a (patch)
tree14ea2d045ee414171b9d5e18f9ad5cfd528f9550 /Tests/ExportImport/Export/testLib3Imp.c
parent4ed1769186f0622efced9d89e6593d136c920dd2 (diff)
downloadCMake-183b95098ea4102da5ca510e8c7a36106a5c257a.zip
CMake-183b95098ea4102da5ca510e8c7a36106a5c257a.tar.gz
CMake-183b95098ea4102da5ca510e8c7a36106a5c257a.tar.bz2
Follow all dependencies of shared library private dependencies
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.
Diffstat (limited to 'Tests/ExportImport/Export/testLib3Imp.c')
-rw-r--r--Tests/ExportImport/Export/testLib3Imp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/ExportImport/Export/testLib3Imp.c b/Tests/ExportImport/Export/testLib3Imp.c
index fb4c13f..c27bccd 100644
--- a/Tests/ExportImport/Export/testLib3Imp.c
+++ b/Tests/ExportImport/Export/testLib3Imp.c
@@ -1,7 +1,10 @@
#if defined(_WIN32) || defined(__CYGWIN__)
# define testLib3Imp_EXPORT __declspec(dllexport)
+# define testLib3ImpDep_IMPORT __declspec(dllimport)
#else
# define testLib3Imp_EXPORT
+# define testLib3ImpDep_IMPORT
#endif
-testLib3Imp_EXPORT int testLib3Imp(void) { return 0; }
+testLib3ImpDep_IMPORT int testLib3ImpDep(void);
+testLib3Imp_EXPORT int testLib3Imp(void) { return testLib3ImpDep(); }