[CMake] INSTALL_NAME_DIR ignored in add_library?

Vittorio Giovara vittorio.giovara at gmail.com
Mon Jun 24 10:19:02 EDT 2013


On Thu, Jun 13, 2013 at 4:54 PM, Clinton Stimpson <clinton at elemtech.com>wrote:

> The INSTALL_NAME_DIR property applies at install time.  If you want it to
> apply at build time, where it would show up on the link line, you need to
> set
> BUILD_WITH_INSTALL_RPATH.
>
> I found the issues, CMAKE_INSTALL_NAME_DIR got ignored because I had
another project CMakeLists.txt embedded in mine which set
CMAKE_SKIP_BUILD_RPATH to false, thus preventing any modifcation of the
rpath/dylib path.


> And since you referenced previous mailing list rpath/Mac discussions, you
> may
> want to look at this blog, which includes the recommendation to not set
> INSTALL_NAME_DIR anymore (available in the upcoming CMake 2.8.12 or
> available
> now on if you compile the current master).
> http://www.kitware.com/blog/home/post/510
>
> Thanks, good to know.

Cheers,
Vittorio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130624/062f9ae0/attachment.htm>


More information about the CMake mailing list