At least on Linux /usr/share/cmake/Csound/FindCsound.cmake is shipped with csound, which allows to find the location of the library and everything else needed to make use of it.
build.rs should check for this and make use of it instead of only looking in hardcoded locations.
There's probably a way to have cmake evaluate it and give cargo the relevant information.