Re: [CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-18 Thread CHEVRIER, Marc
ake.org>> on behalf of Saad Khattak <saadrus...@gmail.com<mailto:saadrus...@gmail.com>> Date: Thursday 14 December 2017 at 03:20 To: Craig Scott <craig.sc...@crascit.com<mailto:craig.sc...@crascit.com>> Cc: Cmake Mailing List <cmake@cmake.org<mailto:cmake@cmake

Re: [CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-15 Thread Saad Khattak
hattak < > saadrus...@gmail.com> > *Date: *Thursday 14 December 2017 at 03:20 > *To: *Craig Scott <craig.sc...@crascit.com> > *Cc: *Cmake Mailing List <cmake@cmake.org> > *Subject: *Re: [CMake] Using SET_TARGET_PROPERTIES and > IMPORTED_LINK_INTERFACE_LIBRARIES > &

Re: [CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-15 Thread Craig Scott
r 2017 at 03:20 > *To: *Craig Scott <craig.sc...@crascit.com> > *Cc: *Cmake Mailing List <cmake@cmake.org> > *Subject: *Re: [CMake] Using SET_TARGET_PROPERTIES and > IMPORTED_LINK_INTERFACE_LIBRARIES > > > > Thanks Craig for your reply. > > > > The is

Re: [CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-14 Thread CHEVRIER, Marc
LibD PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES LibA LibB) From: CMake <cmake-boun...@cmake.org> on behalf of Saad Khattak <saadrus...@gmail.com> Date: Thursday 14 December 2017 at 03:20 To: Craig Scott <craig.sc...@crascit.com> Cc: Cmake Mailing List <cmake@cmake.org> Su

Re: [CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-14 Thread Petr Kmoch
Hi Saad, have you read the docs on IMPORTED_LINK_INTERFACE_LIBRARIES? ( https://cmake.org/cmake/help/latest/prop_tgt/IMPORTED_LINK_INTERFACE_LIBRARIES.html ): "This property is deprecated. Use INTERFACE_LINK_LIBRARIES instead." Setting INTERFACE_LINK_LIBRARIES to "LibA;LibB" should do exactly

Re: [CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-13 Thread Saad Khattak
Thanks Craig for your reply. The issue is that both "LibA" and "LibB" have been set using "add_library(LibA STATIC IMPORTED)" and "add_library(LibB IMPORTED)" and both have some properties that are being set. Ultimately, CMake recognizes LibA and LibB as CMake library projects, and they have

Re: [CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-13 Thread Craig Scott
On Thu, Dec 14, 2017 at 8:22 AM, Saad Khattak wrote: > Hi, > > I have several imported libraries: > > LibA > LibB > LibC > > Where each imported library has been populated by (where ${LIB_NAME} is > either LibA, LibB or LibC): > > add_library(${LIB_NAME} STATIC IMPORTED) >

[CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-13 Thread Saad Khattak
Hi, I have several imported libraries: LibA LibB LibC Where each imported library has been populated by (where ${LIB_NAME} is either LibA, LibB or LibC): add_library(${LIB_NAME} STATIC IMPORTED) And each library has the properties IMPORT_LOCATION_${CONFIGURATION} set properly: