[CMake] How to get RPATH option (-Wl, -rpath, /path/to/local/lib) ?
Franck Houssen
franck.houssen at inria.fr
Thu Feb 1 04:46:04 EST 2018
OK, so I believe I just need to write "-Wl,rpath" in my templates of pc/cmake files !...
Franck
----- Mail original -----
> De: "Franck Houssen" <franck.houssen at inria.fr>
> À: "CMake Mail List" <cmake at cmake.org>
> Envoyé: Mercredi 31 Janvier 2018 10:39:51
> Objet: [CMake] How to get RPATH option (-Wl,-rpath,/path/to/local/lib) ?
> How to get RPATH option (-Wl,-rpath,/path/to/local/lib) ?
> I would like to create a *.pc/cmake file for users to find a library I
> provide. As there is possibly a LOT of dependencies (libraries) I may not
> even be able to list, the most simple way to do that is to use RPATH. I know
> that for gcc, RPATH is set with "-Wl,-rpath". But what about others
> compilers (pgi, icc) ? This option could not be the same.
> Is it possible to "grab" the correct RPATH option (-Wl,-rpath) according to
> the compiler ? Something like a CMAKE_RPATH_OPTIONS to substitute in a
> *.pc/cmake.in template file ? (to create a *.pc/cmake file in the install
> directory using configure_file)
> Franck
> --
> 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:
> https://cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180201/beb2cd88/attachment-0001.html>
More information about the CMake
mailing list