It looks like you want the default behavior, but from what you show,
I don't know what is disabling it. The default behavior does not require
you to set the XCODE_ATTRIBUTE_LD_DYLIB_INSTALL_NAME, nor does it require you
to call install_name_tool yourself at install time to get @rpath.
Not gettin
Ok, this is most certainly not the way to do it, but I added two install steps:
install(CODE "SET(FRAMEWORK_SO \"dummy.framework/dummy\")")
install(SCRIPT add_rpath.cmake COMPONENT frameworks)
add_rpath.cmake:
# Adds @rpath to the SO in the framework because CMake install removes it