[CMake] Redundant linking when modifying shared libraries

2019-02-14 Thread Itay Chamiel
Hi, I've asked this question on Stack Overflow almost a year ago with no useful responses (with the same topic if you wish to search for it), so I'm trying my luck here. I work on a large commercial C++ project comprised of a couple dozen dynamically linked shared libraries, each of which has man

Re: [CMake] Redundant linking when modifying shared libraries

2019-02-14 Thread Itay Chamiel
On 2/14/19 12:38 PM, Craig Scott wrote: I think you might be looking for the LINK_DEPENDS_NO_SHARED target property (or more likely its associated CMAKE_LINK_DEPENDS_NO_SHARED variable).

Re: [CMake] Redundant linking when modifying shared libraries

2019-02-14 Thread Itay Chamiel
On Thu, Feb 14, 2019 at 12:39 PM Craig Scott wrote: > I think you might be looking for the LINK_DEPENDS_NO_SHARED target property > (or more likely its associated CMAKE_LINK_DEPENDS_NO_SHARED variable). After my previous response I experimented a little more, and I got it to work. My mistake was

Re: [CMake] Redundant linking when modifying shared libraries

2019-02-14 Thread Itay Chamiel
On Thu, Feb 14, 2019 at 8:08 PM Robert Maynard wrote: > By default CMake wants to get a correct build 100% of the time. There > is nothing to stop people from having functions defined in a .cxx file > with no corresponding header, and using manual forward deceleration is > used in a consuming libr

Re: [CMake] Redundant linking when modifying shared libraries

2019-02-14 Thread Itay Chamiel
linking`. > > On Thu, Feb 14, 2019 at 3:11 PM Itay Chamiel wrote: > > > > On Thu, Feb 14, 2019 at 8:08 PM Robert Maynard > > wrote: > > > By default CMake wants to get a correct build 100% of the time. There > > > is nothing to stop people from having f