|
|
@ -176,14 +176,12 @@ if(WITH_THREADSANITIZER) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Use std::atomic instead of GCC builtins on macOS PowerPC: |
|
|
|
# Enable usage of STD's Atomic instead of Boost's on PowerPC |
|
|
|
# For more information refer to: https://github.com/PurpleI2P/i2pd/issues/1726#issuecomment-1306335111 |
|
|
|
# For more information refer to https://github.com/PurpleI2P/i2pd/issues/1726#issuecomment-1306335111 |
|
|
|
if(APPLE AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc") |
|
|
|
if(ARCHITECTURE MATCHES "ppc") |
|
|
|
|
|
|
|
add_definitions(-DBOOST_SP_USE_STD_ATOMIC) |
|
|
|
add_definitions(-DBOOST_SP_USE_STD_ATOMIC) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# libraries |
|
|
|
# libraries |
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON) |
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON) |
|
|
|
find_package(Threads REQUIRED) |
|
|
|
find_package(Threads REQUIRED) |
|
|
|