[CMake] How to set Install_name on OS X
Brad King
brad.king at kitware.com
Wed Oct 11 12:59:32 EDT 2006
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
More information about the CMake
mailing list