Re: [CMake] MacOS and shared libraries from imported targets

2019-09-25 Thread Eric Doenges
As far as I am aware, the macOS linker simply records the install name of the dynamic library you link against in your executable (similar to how the Linux linker records the Elf SONAME, if present). So, the first step would be to check the install name of the external dynamic library by runnin

[CMake] MacOS and shared libraries from imported targets

2019-09-24 Thread Michael Welsh Duggan
I have a project that links against an external dynamic library for which I have written a Find module that creates an import target. I do this, in part, by setting the IMPORTED_LOCATION property of the target to the location of the dynamic library. Unfortunately, on OSX the library shows up in t