Library "not found" after building test with CMake on Ubuntu.

I wonder if the library cache is what changed here. The rpath settings could also have been involved. Without more debugging info from before the fix, it’s hard to say exactly. But one can update the cache with sudo ldconfig manually.