List ; Andrew Bell
Subject: Re: [CMake] Static Libraries and target_link_libraries
It is quite inexact because a target can store many information like include
directories or preprocessor definitions for example (through properties like
INCLUDE_DIRECTORIES or COMPILE_DEFINITIONS).
So it make sense
It is quite inexact because a target can store many information like include
directories or preprocessor definitions for example (through properties like
INCLUDE_DIRECTORIES or COMPILE_DEFINITIONS).
So it make sense to enable to specify link libraries to a static library using
PRIVATE or
When creating a static library, you can still use the function
"target_link_libraries" even though the static library is never linked, as
such. What you're doing is creating a dependency record for cmake so that
target_link_libraries of a static library are included in a link of some
other target