The problem is here. CMake doesn’t know that these can be relocated. The best way, IMO, is to make an IMPORTED
target that represents these. When you install, your target will reference these imported targets. You’ll need to remake them in your hash-config.cmake
file using the install-time locations (which you can implement by doing a find_library
).
1 Like