diff --git a/eth/CMakeLists.txt b/eth/CMakeLists.txt index 05e8a4894..d538e6c7f 100644 --- a/eth/CMakeLists.txt +++ b/eth/CMakeLists.txt @@ -13,6 +13,9 @@ link_directories(../libethereum) add_executable(eth ${SRC_LIST}) +find_package(Threads REQUIRED) +target_link_libraries(eth ${CMAKE_THREAD_LIBS_INIT}) + target_link_libraries(eth ethereum) target_link_libraries(eth leveldb) target_link_libraries(eth secp256k1) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7e2d1ca84..115258d83 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -13,6 +13,9 @@ link_directories(../libethereum) add_executable(testeth ${SRC_LIST}) +find_package(Threads REQUIRED) +target_link_libraries(testeth ${CMAKE_THREAD_LIBS_INIT}) + target_link_libraries(testeth ethereum) target_link_libraries(testeth cryptopp) target_link_libraries(testeth secp256k1)