Re: [CMake] Static Libraries and target_link_libraries

2019-01-28 Thread Puetz Kevin A
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

Re: [CMake] Static Libraries and target_link_libraries

2019-01-25 Thread Marc CHEVRIER
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

[CMake] Static Libraries and target_link_libraries

2019-01-25 Thread Andrew Bell
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