[CMake] How to set Install_name on OS X

Mike Jackson mike.jackson at imts.us
Wed Oct 11 14:43:46 EDT 2006


Thanks for the fix. I look forward to the next release of Cmake. BTW, when
is the next release?


On 10/11/06 12:59 PM, "Brad King" <brad.king at kitware.com> wrote:

> Mike Jackson wrote:
>> On 10/10/06 4:56 PM, "Brad King" <brad.king at kitware.com> wrote:
>>> SET_TARGET_PROPERTIES (DislocationIO
>>>   PROPERTIES BUILD_WITH_INSTALL_RPATH 1
>>>              INSTALL_NAME_DIR "@executable_path/../PlugIns"
>>>   )
> 
> Okay, there was a bug in the code that computes the final value for
> -install_name.  It passed the install_name_dir path to a routine that
> was supposed to convert the string for storage in the generated build
> system.  The routine was also collapsing/simplifying the path so that
> the ".." part of your path erased the path component above it:
> 
>   @executable_path/../Plugins
> 
> simplifies to
> 
>   Plugins
> 
> which is wrong in this case.
> 
> The Xcode generator did not do this, which is the correct behavior.
> I've updated the Makefile generator to not do the simplification either.
>  I've also added a test that uses @executable_path/.. in the
> install_name to keep this working.  The fix will be in 2.4.4.
> 
> -Brad

-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services






More information about the CMake mailing list