Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-05-20 Thread Michael Hertling
On 05/10/2011 11:24 AM, Pere Mato Vila wrote: >> >> To my regret, I don't see any easy solution for your concern, but if >> the unnecessary rebuilds due to the the RPATH placeholder mechanism >> are a serious issue in your project, the above-noted approach can >> possibly be adapted to your needs.

Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-05-10 Thread Pere Mato Vila
> > To my regret, I don't see any easy solution for your concern, but if > the unnecessary rebuilds due to the the RPATH placeholder mechanism > are a serious issue in your project, the above-noted approach can > possibly be adapted to your needs. > > 'hope that helps. Dear Michael, Thank-you ve

Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-05-08 Thread Michael Hertling
On 05/05/2011 05:14 PM, Pere Mato Vila wrote: > > >> If I understand correctly, it's this second point which causes your >> astonishment, but it already happens during the build phase in the >> build tree, not just when installing with "make install", right? > > Yes, this is indeed my astonishm

Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-05-05 Thread Pere Mato Vila
> If I understand correctly, it's this second point which causes your > astonishment, but it already happens during the build phase in the > build tree, not just when installing with "make install", right? Yes, this is indeed my astonishment. I understand that for 'normal' projects this re-lin

Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-05-03 Thread Michael Hertling
On 05/03/2011 11:17 AM, Pere Mato Vila wrote: > >> CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) >> PROJECT(PREFIX C) >> SET(CMAKE_VERBOSE_MAKEFILE ON) >> ADD_LIBRARY(f SHARED f.c) >> INSTALL(TARGETS f >>RUNTIME DESTINATION bin >>LIBRARY DESTINATION lib >>ARCHIVE DESTINATION lib) >>

Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-05-03 Thread Pere Mato Vila
> Are you sure you actually need this RPATH in this library ? In the link > command you posted there are no libraries linked... You are right, this particular library is the lowest level library and does no link with any-other, but there are another 85 libraries in the project that would requ

Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-05-03 Thread Pere Mato Vila
> CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) > PROJECT(PREFIX C) > SET(CMAKE_VERBOSE_MAKEFILE ON) > ADD_LIBRARY(f SHARED f.c) > INSTALL(TARGETS f >RUNTIME DESTINATION bin >LIBRARY DESTINATION lib >ARCHIVE DESTINATION lib) > > with ${CMAKE_SOURCE_DIR}/f.c containing just "void f(v

Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-05-02 Thread Michael Hertling
On 04/29/2011 03:39 PM, Pere Mato Vila wrote: > Perhaps somebody can give me some hints on this problem I have. I build a > project and install it in /install with "make install". Then I do > change the installation prefix with > cmake -DCMAKE_INSTALL_PREFIX=/install2 ../root_cmake/ > and if I

Re: [CMake] Changing installation prefix triggers re-linking of all libraries

2011-04-29 Thread Alexander Neundorf
On Friday 29 April 2011, Pere Mato Vila wrote: > Perhaps somebody can give me some hints on this problem I have. I build a > project and install it in /install with "make install". Then I do > change the installation prefix with cmake > -DCMAKE_INSTALL_PREFIX=/install2 ../root_cmake/ > and if I ex

[CMake] Changing installation prefix triggers re-linking of all libraries

2011-04-29 Thread Pere Mato Vila
Perhaps somebody can give me some hints on this problem I have. I build a project and install it in /install with "make install". Then I do change the installation prefix with cmake -DCMAKE_INSTALL_PREFIX=/install2 ../root_cmake/ and if I execute again "make install" it rebuilds basically ever