[CMake] Install with full absolute path on OS X

Michael Jackson mike.jackson at bluequartz.net
Wed Apr 27 09:53:24 EDT 2016


Thanks. That was the solution.

-- 
Mike Jackson  [mike.jackson at bluequartz.net]
> clinton at elemtech.com <mailto:clinton at elemtech.com>
> April 26, 2016 at 2:57 PM
>
> 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:
> Michael Jackson <mailto:mike.jackson at bluequartz.net>
> April 26, 2016 at 2:24 PM
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160427/c7ee1b3b/attachment.html>


More information about the CMake mailing list