I’m trying to build for Mac OS in such a way that the linker finds Frameworks at link time and the executable finds them at runtime. Seems to me this should be absolute boilerplate, since the relative path within the app structure will always be the same:
app
Contents
Frameworks
MacOS
<executable>
So what I want to say while building is <executable’s directory>/../Frameworks .
But I’m reading a lot of commentary with a lot of different answers. Is it RPATH? Is it MACOSX_RPATH? And how exactly do I present that information within the CMake setting?
This reference looks useful but involves so many ramifications that I can’t make sense of it.
Is there an easy path through the woods? A bit of boilerplate would be much appreciated.