# HG changeset patch # User Josef 'Jeff' Sipek # Date 1614789431 18000 # Node ID 9819d9d0e08ac1ca5eb021428d6d5ab41c91a395 # Parent 19b58acf0e3ba90de556a5cd3b6366996dcca137 cmake: force checking libpthread for symbols Signed-off-by: Josef 'Jeff' Sipek diff -r 19b58acf0e3b -r 9819d9d0e08a cmake/config.cmake --- a/cmake/config.cmake Mon Mar 01 23:31:45 2021 -0500 +++ b/cmake/config.cmake Wed Mar 03 11:37:11 2021 -0500 @@ -1,5 +1,5 @@ # -# Copyright (c) 2016-2019 Josef 'Jeff' Sipek +# Copyright (c) 2016-2021 Josef 'Jeff' Sipek # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -20,6 +20,10 @@ # SOFTWARE. # +# libpthread exists in some fashion on any POSIX system we're likely to +# encounter. +set(CMAKE_REQUIRED_LIBRARIES "pthread") + include(CheckFunctionExists) include(CheckIncludeFiles) include(CheckLibraryExists)