mirror of
https://github.com/reactos/CMake.git
synced 2025-02-03 10:31:55 +00:00
0400cd5dd1
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.
24 lines
298 B
C++
24 lines
298 B
C++
|
|
#ifndef FOO_LIBRARY
|
|
#error Expected FOO_LIBRARY
|
|
#endif
|
|
|
|
#ifndef BAR_LIBRARY
|
|
#error Expected BAR_LIBRARY
|
|
#endif
|
|
|
|
#ifdef BANG_LIBRARY
|
|
#error Unexpected BANG_LIBRARY
|
|
#endif
|
|
|
|
#ifdef ZOT_LIBRARY
|
|
#error Unexpected ZOT_LIBRARY
|
|
#endif
|
|
|
|
#include "zot.h"
|
|
|
|
int main(void)
|
|
{
|
|
return foo() + bar() + zot();
|
|
}
|