cmake: look for threads lib in a portable way
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0bac9f83d3
commit
dec7875276
|
@ -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
|
||||
|
|
Reference in New Issue