On 01/29/2015 10:32 AM, Chris Green wrote:
> I can confirm that replacing the text libtbb.so file containing the
> INPUT instruction with a link to the library with the SONAME is
> sufficient to solve the problem, at least as a short term workaround.
> There is no importing of targets: this library is found with
> find_library as part of a config.cmake file invoked as part of
> find_package(). I don't know whether CMake is using readelf, objdump or
> readlink, but it appears that something of that nature is being tried (a
> quick search with ack revealed cmELF.{h,cxx}). If interpreting the INPUT
> directive were to be added to that procedure, I think we would be very
> happy. Should I put an entry in Mantis?
Nils is correct that GuessLibrarySOName is used. I'd forgotten about that.
If you link tothis library using a full path manually, what is recorded
in the NEEDED field of the resulting binary? Without SONAME many linkers
record the full path. Does INPUT avoid that?
Thanks,
-Brad
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake