Make $<LINK_ONLY> available to projects (#14751)

Previously this generator expression was used internally by the
target_link_libraries command to honor private linking requirements of
static libraries in their INTERFACE_LINK_LIBRARIES.  Remove the check
that limits $<LINK_ONLY> to this use case to make it available for
project code to use too.
This commit is contained in:
Brad King
2014-07-15 11:14:49 -04:00
parent a0dc1354fe
commit 0400cd5dd1
10 changed files with 45 additions and 13 deletions
+6 -2
View File
@@ -11,9 +11,13 @@
#error Unexpected BANG_LIBRARY
#endif
#include "bar.h"
#ifdef ZOT_LIBRARY
#error Unexpected ZOT_LIBRARY
#endif
#include "zot.h"
int main(void)
{
return foo() + bar();
return foo() + bar() + zot();
}