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:[email protected]] On Behalf Of Robert > Bielik > Sent: den 19 oktober 2017 16:09 > To: [email protected] > 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 -- 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
