mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-13 06:33:27 +01:00
Merge pull request #4580
938476c9
CMakeLists.txt: detect and use -pthread compiler flag (moneromooo-monero)
This commit is contained in:
commit
8f9c381f86
@ -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
|
# Note that at the time of this writing the -Wstrict-prototypes flag added below will make this fail
|
||||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
|
add_c_flag_if_supported(-pthread CMAKE_C_FLAGS)
|
||||||
|
add_cxx_flag_if_supported(-pthread CMAKE_CXX_FLAGS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Handle OpenSSL, used for sha256sum on binary updates and light wallet ssl http
|
# Handle OpenSSL, used for sha256sum on binary updates and light wallet ssl http
|
||||||
|
Loading…
Reference in New Issue
Block a user