mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7502 from ethereum/staticReleaseFix
Explicitly link against pthreads for static build.
This commit is contained in:
commit
2d150b659e
@ -37,3 +37,7 @@ add_library(devcore ${sources})
|
|||||||
target_link_libraries(devcore PUBLIC jsoncpp Boost::boost Boost::filesystem Boost::regex Boost::system)
|
target_link_libraries(devcore PUBLIC jsoncpp Boost::boost Boost::filesystem Boost::regex Boost::system)
|
||||||
target_include_directories(devcore PUBLIC "${CMAKE_SOURCE_DIR}")
|
target_include_directories(devcore PUBLIC "${CMAKE_SOURCE_DIR}")
|
||||||
add_dependencies(devcore solidity_BuildInfo.h)
|
add_dependencies(devcore solidity_BuildInfo.h)
|
||||||
|
|
||||||
|
if(SOLC_LINK_STATIC)
|
||||||
|
target_link_libraries(devcore PUBLIC Threads::Threads)
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user