[CMake] Difference between IMPORTED_LINK_DEPENDENT_LIBRARIES and IMPORTED_LINK_INTERFACE_LIBRARIES

James Bigler jamesbigler at gmail.com
Wed Dec 10 16:57:09 EST 2008


I've read the documentation, but it's still not clear to me what the
difference between these two property is.

Could someone please explain it to me?

Thanks,
James

     IMPORTED_LINK_DEPENDENT_LIBRARIES
          Dependent  shared  libraries   of  an  imported  shared
          library.

          Shared  libraries   may  be  linked   to  other  shared
          libraries  as part  of their  implementation.   On some
          platforms  the   linker  searches  for   the  dependent
          libraries of shared libraries they are including in the
          link.   This   property  lists  the   dependent  shared
          libraries of  an imported library.  The  list should be
          disjoint from  the list  of interface libraries  in the
          IMPORTED_LINK_INTERFACE_LIBRARIES     property.      On
          platforms  requiring dependent  shared libraries  to be
          found  at  link  time  CMake  uses  this  list  to  add
          appropriate files  or paths  to the link  command line.
          Ignored for non-imported targets.

     IMPORTED_LINK_INTERFACE_LIBRARIES
          Transitive link interface of an IMPORTED target.

          Lists  libraries whose  interface is  included  when an
          IMPORTED  library target is  linked to  another target.
          The libraries will be included on the link line for the
          target.  Unlike  the LINK_INTERFACE_LIBRARIES property,
          this  property applies  to all  imported  target types,
          including STATIC  libraries.  This property  is ignored
          for non-imported targets.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081210/e679246b/attachment.htm>


More information about the CMake mailing list