[CMake] Install with full absolute path on OS X

clinton at elemtech.com clinton at elemtech.com
Tue Apr 26 14:57:51 EDT 2016


To set the install name to an absolute path, it would probably be something like 
set_property(TARGET EMsoft PROPERTY INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib) 

Clint 

----- On Apr 26, 2016, at 12:24 PM, Michael Jackson <mike.jackson at bluequartz.net> wrote: 

> I am building a library and installing onto the local system. After installation
> otool reports that the path is "@rpath/lib/libEMsoft.dylib"

> How can I have the installed path be the full absolute path to the library. For
> this use case @rpath is not going to work.

> I have tried https://cmake.org/Wiki/CMake_RPATH_handling and variations of that
> information but none of it seems to work.

> THanks
> --
> Mike Jackson [ mike.jackson at bluequartz.net ]

> --

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160426/8adfc919/attachment.html>


More information about the CMake mailing list