cmake: look for threads lib in a portable way
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-14 04:09:44 +01:00
parent 0bac9f83d3
commit dec7875276
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -19,6 +19,7 @@ else()
OPTION(IS_CI "Are we in CI?" OFF)
endif()
find_package(Threads REQUIRED)
find_package(Git QUIET)
if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
if(IS_CI)
@ -268,6 +269,6 @@ target_link_libraries(fortuna
fmt::fmt
PRIVATE fmtlog::fmtlog
PRIVATE da_threading::da_threading
PRIVATE pthread)
PRIVATE Threads::Threads)
# vim: ft=cmake ff=unix softtabstop=2