[CMake] Install rpath handling for iOS frameworks
Robert Bielik
Robert.Bielik at dirac.com
Thu Oct 19 10:09:14 EDT 2017
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
More information about the CMake
mailing list