CMake is handling these paths quite well already.
When creating my package here it causes also extra work to place the files into the correct locations.
For example, when working with debhelper to build the packages for Debian, I normally need to set CMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) and the libs will be placed into "/usr/lib/x86_64-linux-gnu/" perfectly fine.
Removing the hardcoded locations here, will recover the functionality.
CMake is handling these paths quite well already. When creating my package here it causes also extra work to place the files into the correct locations. For example, when working with debhelper to build the packages for Debian, I normally need to set CMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) and the libs will be placed into "/usr/lib/x86_64-linux-gnu/" perfectly fine. Removing the hardcoded locations here, will recover the functionality.