Merge 05f8b796d1
into 6e4a5a6d94
This commit is contained in:
commit
a8432a90d4
9 changed files with 49 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(xmrig)
|
||||
|
||||
option(WITH_DONATION "Enable donation" ON)
|
||||
option(WITH_HWLOC "Enable hwloc support" ON)
|
||||
option(WITH_CN_LITE "Enable CryptoNight-Lite algorithms family" ON)
|
||||
option(WITH_CN_HEAVY "Enable CryptoNight-Heavy algorithms family" ON)
|
||||
|
@ -135,6 +136,13 @@ if (CMAKE_C_COMPILER_ID MATCHES GNU)
|
|||
set_source_files_properties(src/crypto/cn/CnHash.cpp PROPERTIES COMPILE_FLAGS "-Ofast -fno-tree-vectorize")
|
||||
endif()
|
||||
|
||||
if(WITH_DONATION)
|
||||
message("-- Donation state: enabled")
|
||||
else()
|
||||
message("-- Donation state: disabled")
|
||||
add_definitions(-DXMRIG_NO_DONATE)
|
||||
endif()
|
||||
|
||||
if (WITH_VAES)
|
||||
add_definitions(-DXMRIG_VAES)
|
||||
set(HEADERS_CRYPTO "${HEADERS_CRYPTO}" src/crypto/cn/CryptoNight_x86_vaes.h)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue