Ensure that static linking of libuuid happens correctly
We find libuuid via pkg-config, using CMake's FindPkgConfig.cmake module to create an imported target.
As of CMake 3.24, imported targets can only be used for linking shared binaries. Upstream feature request to improve this is: https://gitlab.kitware.com/cmake/cmake/-/issues/21714
In the meantime, we must manually use the STATIC variables set by FindPkgConfig when static linking libuuid, to ensure the link line contains -luuid
rather than libuuid.so
.
Part of buildbox-integration#1 (closed)
Edited by Sam Thursfield