
Previously we always used content guarded by `$<LINK_ONLY:...>` in `LINK_LIBRARIES`, even when evaluating for non-linking usage requirements. Add a policy to honor `LINK_ONLY` in `LINK_LIBRARIES` the same way we already do in `INTERFACE_LINK_LIBRARIES`.
9 lines
119 B
C
9 lines
119 B
C
#ifndef FOO_LINK_ONLY
|
|
# error "FOO_LINK_ONLY incorrectly not defined"
|
|
#endif
|
|
|
|
int foo_link_only(void)
|
|
{
|
|
return 0;
|
|
}
|