mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CMake: Fix linking with pthread
This commit is contained in:
parent
0dc73913e1
commit
15fd43f035
@ -15,6 +15,8 @@ project(solidity VERSION ${PROJECT_VERSION})
|
|||||||
include(EthDependencies)
|
include(EthDependencies)
|
||||||
include(deps/jsoncpp.cmake)
|
include(deps/jsoncpp.cmake)
|
||||||
|
|
||||||
|
find_package(Threads)
|
||||||
|
|
||||||
# Figure out what compiler and system are we using
|
# Figure out what compiler and system are we using
|
||||||
include(EthCompilerSettings)
|
include(EthCompilerSettings)
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ file(GLOB sources "*.cpp")
|
|||||||
file(GLOB headers "*.h")
|
file(GLOB headers "*.h")
|
||||||
|
|
||||||
add_library(devcore ${sources} ${headers})
|
add_library(devcore ${sources} ${headers})
|
||||||
target_link_libraries(devcore PRIVATE ${Boost_FILESYSTEM_LIBRARIES} ${Boost_REGEX_LIBRARIES} ${Boost_SYSTEM_LIBRARIES})
|
target_link_libraries(devcore PRIVATE ${Boost_FILESYSTEM_LIBRARIES} ${Boost_REGEX_LIBRARIES} ${Boost_SYSTEM_LIBRARIES} Threads::Threads)
|
||||||
target_include_directories(devcore SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
|
target_include_directories(devcore SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
|
||||||
target_include_directories(devcore PRIVATE ..)
|
target_include_directories(devcore PRIVATE ..)
|
||||||
add_dependencies(devcore solidity_BuildInfo.h)
|
add_dependencies(devcore solidity_BuildInfo.h)
|
||||||
|
Loading…
Reference in New Issue
Block a user