mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user