In the line 533 of libraries/CMakeLists.txt, the absolute path "/usr/lib" is set to be the destination of install()
However, when attempting to use the --prefix option to relocate the installation destination, using an absolute path causes the installation to fail. This prevents the installation to custom prefixes and could lead to unintended issues.
There are numerous similar fixes, such as this example.
I think the path used in install(DESTINATION) should be set to a relative path to prevent such issues.