See: https://cmake.org/cmake/help/latest/module/FindThreads.html
We should make a few small updates to modernize the CMake threads behavior:
- We should use the
Threads::Threads target vs. ${CMAKE_THREAD_LIBS_INIT}.
- We should investigate whether we should set
THREADS_PREFER_PTHREAD_FLAG to TRUE.
See: https://cmake.org/cmake/help/latest/module/FindThreads.html
We should make a few small updates to modernize the CMake threads behavior:
Threads::Threadstarget vs.${CMAKE_THREAD_LIBS_INIT}.THREADS_PREFER_PTHREAD_FLAGtoTRUE.