building/referencing a library

That’s for finding the threading library on the system (like pthreads, etc), see cmake’s Modules/FindThreads.cmake for what it’s doing.