diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-26 22:34:21 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-26 22:34:21 +0200 |
commit | 8f9c381f86fe77cf20a4a94b628f9f8669b5363d (patch) | |
tree | 4c3a03e61eb519c70c94e8f83298d88268ef1570 /CMakeLists.txt | |
parent | Merge pull request #4573 (diff) | |
parent | CMakeLists.txt: detect and use -pthread compiler flag (diff) | |
download | monero-8f9c381f86fe77cf20a4a94b628f9f8669b5363d.tar.xz |
Merge pull request #4580
938476c9 CMakeLists.txt: detect and use -pthread compiler flag (moneromooo-monero)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d531e668..4d29e8d4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -431,6 +431,8 @@ 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) + add_c_flag_if_supported(-pthread CMAKE_C_FLAGS) + add_cxx_flag_if_supported(-pthread CMAKE_CXX_FLAGS) endif() # Handle OpenSSL, used for sha256sum on binary updates and light wallet ssl http |