Use the CMake Threads package
authorCharles Giessen <charles@lunarg.com>
Wed, 3 Nov 2021 20:28:03 +0000 (14:28 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 9 Mar 2022 22:06:30 +0000 (15:06 -0700)
commitc3b4b13a8eff80bea67b2536128ce1a41e4cd9ad
treeb1fcb7aa496ad916a822e2067d23379be7d92136
parent578e4771f89a0b23490d793c64aa732a304d7f8b
Use the CMake Threads package

Instead of manually linking to pthreads, use find_package(Threads) to get the
platform specific name for the threading library and link to it. Use the
THREADS_PREFER_PTHREAD_FLAG to ensure we prefer pthreads before anything
else. Note that this commit is a part of a series of commits and not
intended to work by itself.
CMakeLists.txt
loader/CMakeLists.txt