[CMake] Install rpath handling for iOS frameworks
Robert Bielik
Robert.Bielik at dirac.com
Thu Oct 19 10:14:26 EDT 2017
Oh, and I just added:
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
But it doesn't change anything.
/R
> -----Original Message-----
> From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Robert
> Bielik
> Sent: den 19 oktober 2017 16:09
> To: Cmake at cmake.org
> Subject: [CMake] Install rpath handling for iOS frameworks
>
> I'm trying to package an iOS framework, and with the target setting:
>
> XCODE_ATTRIBUTE_LD_DYLIB_INSTALL_NAME
> "@rpath/$(EXECUTABLE_PATH)"
>
> I get the framework built nicely. otool -L dummy.framework/dummy shows
>
> @rpath/dummy.framework/dummy
>
> Just as it should. Now I have a install directive:
>
> install(TARGETS dummy
> FRAMEWORK DESTINATION "./" COMPONENTS frameworks)
>
> Then I do cpack -G ZIP, and it all packages together without a hitch. But when
> I do otool -L of the dummy.framework/dummy from where the package is
> built I get:
>
> dummy.framework/dummy
>
> i.e. @rpath has been removed during the install process ?
>
> What am I doing wrong ?
>
> TIA
> /Robert
>
> --
>
> 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
More information about the CMake
mailing list