From caec1663fd0281f110a6b940333d89e197148ef7 Mon Sep 17 00:00:00 2001 From: Fabian Schuh Date: Fri, 24 Jan 2014 13:48:38 +0100 Subject: [PATCH] added pthread to cmake --- eth/CMakeLists.txt | 3 +++ test/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) 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)