Explicitly link against pthreads for static build.

This commit is contained in:
Daniel Kirchner 2019-10-02 00:30:38 +02:00
parent 7709ece95f
commit d459fa6f22

View File

@ -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()