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 | |
| parent | 442c58e994b0fae67147fe21f94bfb7e72ace26b (diff) | |
| parent | 938476c9a59e04c245fac7707c6baf2183964e60 (diff) | |
| download | monzero-core-8f9c381f86fe77cf20a4a94b628f9f8669b5363d.tar.gz monzero-core-8f9c381f86fe77cf20a4a94b628f9f8669b5363d.tar.xz monzero-core-8f9c381f86fe77cf20a4a94b628f9f8669b5363d.zip | |
Merge pull request #4580
938476c9 CMakeLists.txt: detect and use -pthread compiler flag (moneromooo-monero)
| -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 |
