diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-07-16 14:32:18 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-07-16 14:32:21 +0200 |
commit | a092fcd6072c85d436585ddb7b494b9c184c5102 (patch) | |
tree | 292e15a137809efd662f371648a2f8539dd9a93b | |
parent | Merge pull request #340 (diff) | |
parent | Use g++ flag "-pthread" instead of "-lpthread", where preferred (diff) | |
download | monero-a092fcd6072c85d436585ddb7b494b9c184c5102.tar.xz |
Merge pull request #341
bbb936d Use g++ flag "-pthread" instead of "-lpthread", where preferred (warptangent)
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ccb4133e..3e7378a7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,6 +230,7 @@ add_definitions("-DBLOCKCHAIN_DB=${BLOCKCHAIN_DB}") if (UNIX AND NOT APPLE) # Note that at the time of this writing the -Wstrict-prototypes flag added below will make this fail + set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads) endif() @@ -410,7 +411,7 @@ elseif(APPLE OR FREEBSD) set(EXTRA_LIBRARIES "") elseif(NOT MSVC) find_library(RT rt) - set(EXTRA_LIBRARIES ${RT} ${PTHREAD} ${DL}) + set(EXTRA_LIBRARIES ${RT} ${DL}) endif() include(version.cmake) |