mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 20:29:56 -06:00
Refactoring in commit8c65b7042e(cmExportFileGenerator: Simplify collection of targets missing from export set, 2022-04-11, v3.24.0-rc1~281^2) accidentally dropped the behavior change from commit0ad2a1c181(Export: Never treat private link libraries as public package dependencies., 2013-09-24, v3.0.0-rc1~559^2). Restore the behavior and add a test. Fixes: #23838
13 lines
146 B
C
13 lines
146 B
C
#if defined(_WIN32)
|
|
__declspec(dllimport)
|
|
#endif
|
|
int foo(void);
|
|
|
|
#ifdef _WIN32
|
|
__declspec(dllexport)
|
|
#endif
|
|
int bar(void)
|
|
{
|
|
return foo();
|
|
}
|