From d459fa6f226cbd488456290bb1b54bf7133148a0 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Wed, 2 Oct 2019 00:30:38 +0200 Subject: [PATCH] Explicitly link against pthreads for static build. --- libdevcore/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libdevcore/CMakeLists.txt b/libdevcore/CMakeLists.txt index 8bc3bb525..ef2af6145 100644 --- a/libdevcore/CMakeLists.txt +++ b/libdevcore/CMakeLists.txt @@ -37,3 +37,7 @@ add_library(devcore ${sources}) target_link_libraries(devcore PUBLIC jsoncpp Boost::boost Boost::filesystem Boost::regex Boost::system) target_include_directories(devcore PUBLIC "${CMAKE_SOURCE_DIR}") add_dependencies(devcore solidity_BuildInfo.h) + +if(SOLC_LINK_STATIC) + target_link_libraries(devcore PUBLIC Threads::Threads) +endif()