emcrisostomo / fswatch

A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
https://emcrisostomo.github.io/fswatch/
GNU General Public License v3.0
5.07k stars 330 forks source link

Fix pthread usage in CMake #307

Open KyleFromKitware opened 1 year ago

KyleFromKitware commented 1 year ago

Rather than searching for -lpthread, use find_package(Threads) and use the imported target that it creates. Make sure to use threads in the test program as well.