<div dir="ltr">Based on --help-property I can't really tease them apart.  It looks like LINK_INTERFACE_LIBRARIES is old and INTERFACE_LINK_LIBRARIES is new, but I can't really figure out what the change is.<div><br>

</div><div>In my project, I have a hierarchy of static libraries connected by TARGET_LINK_LIBRARIES(... LINK_PUBLIC ...) and I can get to this information with LINK_INTERFACE_LIBRARIES on linux, but on OSX it appears to not be there with LINK_INTERFACE_LIBRARIES, but INTERFACE_LINK_LIBRARIES does work.  I would like to understand the difference and version support before I start using it.</div>

<div><br></div><div>1. Which versions support INTERFACE_LINK_LIBRARIES?</div><div>2. What are the differences between them?</div><div>3. There also seems to be a difference (for ADD_LIBRARY) between LINK_PUBLIC/LINK_PRIVATE and (what I believe are newer) PUBLIC/PRIVATE, but what are the differences here?</div>

<div><br></div><div>For example, I've used the below CMakeLists.txt and gotten the below output.  Clearly there is some difference ($<LINK_ONLY:a>), but what does it mean?</div><div><br></div><div>CMakeLists.txt:</div>

<div><br></div><div>"""</div><div><div>project(test)</div><div><br></div><div>add_library(a STATIC a)</div><div>add_library(b STATIC b)</div><div>target_link_libraries(b a)</div><div>add_library(c STATIC c)</div>

<div>target_link_libraries(c LINK_PRIVATE a)</div><div>add_library(d STATIC d)</div><div>target_link_libraries(d LINK_PUBLIC a)</div><div>add_library(e STATIC e)</div><div>target_link_libraries(e PRIVATE a)</div><div>add_library(f STATIC f)</div>

<div>target_link_libraries(f PUBLIC a)</div><div><br></div><div>foreach (lib a b c d e f)</div><div>  get_property(lil TARGET ${lib} PROPERTY LINK_INTERFACE_LIBRARIES)</div><div>  get_property(ill TARGET ${lib} PROPERTY INTERFACE_LINK_LIBRARIES)</div>

<div>  message(STATUS "${lib}: LINK_INTERFACE_LIBRARIES = \"${lil}\" INTERFACE_LINK_LIBRARIES = \"${ill}\"")</div><div>endforeach ()</div><div>"""</div><div><br></div><div>output:</div>

<div><br></div><div>"""</div><div><div>-- a: LINK_INTERFACE_LIBRARIES = "" INTERFACE_LINK_LIBRARIES = ""</div><div>-- b: LINK_INTERFACE_LIBRARIES = "" INTERFACE_LINK_LIBRARIES = "a"</div>

<div>-- c: LINK_INTERFACE_LIBRARIES = "" INTERFACE_LINK_LIBRARIES = "$<LINK_ONLY:a>"</div><div>-- d: LINK_INTERFACE_LIBRARIES = "a" INTERFACE_LINK_LIBRARIES = "a"</div><div>-- e: LINK_INTERFACE_LIBRARIES = "" INTERFACE_LINK_LIBRARIES = "$<LINK_ONLY:a>"</div>

<div>-- f: LINK_INTERFACE_LIBRARIES = "a" INTERFACE_LINK_LIBRARIES = "a"</div></div><div>"""</div><div><br></div>-- <br>Cheers,<br>Leif
</div></div>