2011/6/8 Andreas Naumann <andreas-naum...@gmx.net>: > Am 08.06.2011 15:02, schrieb Eric Noulard: >> >> 2011/6/8 Andreas Naumann<andreas-naum...@gmx.net>: >> >>> >>> Am 08.06.2011 11:56, schrieb Eric Noulard: >>> >>>> >>>> 2011/6/8 Andreas Naumann<andreas-naum...@gmx.net>: >>>> >>>> >>>>> >>>>> Hi @all, >>>>> >>>>> I have some problem with the library usage in cmake. >>>>> >>>>> It seems to me, that cmake removes the full path of the library, if the >>>>> path >>>>> is in the environment variable LIBRARY_PATH. >>>>> This behaviour cause problems at our system, such that the linker links >>>>> against the wrong library. >>>>> >>>>> Is there an option to avoid this splitting? >>>> >>>> Did you read that: >>>> http://www.cmake.org/Wiki/CMake_RPATH_handling >>>> >>>> Which version of CMake are you using? >>>> On which system ? >>> >>> We are using version 2.8.2 and 2.8.4 on Debian and Suse Linux. >>> >>> I've read the hints on RPATH handling, but there it is said, that: >>> "By default if you don't change any RPATH related settings, CMake will >>> link >>> the executables and shared libraries with full RPATH to all used >>> libraries >>> in the build tree" >>> >> >> Yes. >> And you did not mention it but the probleme you have occurs when using >> the executable **directly from the build dir** right? >> > > what do you mean with "using"? I cannot even link the executable, because > cmake removes the path from the library without adding the directory to the > library directories.
I saw Andreas & Michael did explain the trouble the appropriate way. Sorry about my misunderstanding of your problem and the associated time waste. I didn't catch the fact the problem occurred at build time. -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org _______________________________________________ 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