0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-04 13:55:23 -05:00

cmake: Add POSIX threads support

This commit is contained in:
Hennadii Stepanov 2024-06-30 10:13:51 +01:00
parent fd72d00ffe
commit 35cffc497d
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -85,6 +85,12 @@ target_link_libraries(core_interface INTERFACE
$<$<CONFIG:Debug>:core_interface_debug>
)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(core_base_interface INTERFACE
Threads::Threads
)
include(cmake/introspection.cmake)
# TODO: The `CMAKE_SKIP_BUILD_RPATH` variable setting can be deleted