Mercurial > libjeffpc
changeset 834:9819d9d0e08a
cmake: force checking libpthread for symbols
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Wed, 03 Mar 2021 11:37:11 -0500 |
parents | 19b58acf0e3b |
children | 3d25e6c09e9f |
files | cmake/config.cmake |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <jeffpc@josefsipek.net> +# Copyright (c) 2016-2021 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> # # 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)