[CMake] Relink to shared libs

Leif Walsh leif.walsh at gmail.com
Thu Oct 25 22:47:04 EDT 2012


Because that doesn't retain the dependencies that do the linking the first time around. It's also messy and non-portable. 

Sent from my iPhone

On Oct 25, 2012, at 21:52, Doug <douglas.linder at gmail.com> wrote:

> I can't see why you couldn't use set(CMAKE_SKIP_RPATH ON) and post
> build copy your library to a path that's on your linker path; have
> your tests setup to use the system copy of the library instead of the
> local copy.
> 
> ~
> Doug.
> 
> On Sat, Aug 4, 2012 at 2:41 AM, Leif Walsh <leif.walsh at gmail.com> wrote:
>> This is sort of the point of shared libs though, you can update them without relinking everything on your system, unless you're doing something really brain-damaged.
>> 
>> Is there any way I, as someone who knows my libraries are sane, can prevent this extra work and just resort to a "make clean" if I really screw something up?
>> 
>> Sent from my iPhone
>> 
>> On Jul 20, 2012, at 8:28, Andreas Naumann <Andreas-Naumann at gmx.net> wrote:
>> 
>>> If you are using the Makefile system, then the libraries are newer than your tests, so your tests seems to need an update.
>>> 
>>> And sometimes programs need relinking, where should the build system now, if you really need the relinking?
>>> 
>>> 
>>> Am 20.07.2012 14:08, schrieb Leif Walsh:
>>>> Why, if I make a small change to my shared library, does cmake relink all of my tests to it? It's a shared library, isn't the point that it doesn't need relinking? Seems like a big waste of time. Can I suppress this in any way?
>>>> 
>>>> Sent from my iPhone
>>>> --
>>>> 
>>>> Powered by www.kitware.com
>>>> 
>>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>> 
>>>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>>> 
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.cmake.org/mailman/listinfo/cmake
>>> 
>>> --
>>> 
>>> Powered by www.kitware.com
>>> 
>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>> 
>>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>> 
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.cmake.org/mailman/listinfo/cmake
>> --
>> 
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>> 
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list