horance-liu / flink.cmake

force link to static library in cmake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flink: force link to static library in cmake

Outline

target_force_link_libraries(<target>
    <PRIVATE|PUBLIC|INTERFACE> <item>...
    [<PRIVATE|PUBLIC|INTERFACE> <item>...]...
)

The PUBLIC, PRIVATE and INTERFACE keywords can be used to specify both the link dependencies and the link interface in one command. Libraries and targets following PUBLIC are linked to, and are made part of the link interface. Libraries and targets following PRIVATE are linked to, but are not made part of the link interface. Libraries following INTERFACE are appended to the link interface and are not used for linking .

Example

About

force link to static library in cmake

License:Apache License 2.0


Languages

Language:CMake 69.2%Language:C++ 30.8%