306796e862
Build a shared library and an executable linking to it inside the inner test. Set LINK_DEPENDS_NO_SHARED on the executable. Add a custom target to compare the output file times. Verify that on the first build the executable is newer than the library. Then modify a library source file. Verify that on the second build the library is newer because the executable did not have a dependency to re-link.
9 lines
167 B
C
9 lines
167 B
C
#include "link_depends_no_shared_lib.h"
|
|
#ifdef _WIN32
|
|
__declspec(dllexport)
|
|
#endif
|
|
int link_depends_no_shared_lib(void)
|
|
{
|
|
return link_depends_no_shared_lib_value;
|
|
}
|