Skip to content

Commit

Permalink
Fixed linking to gzip libs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendr0id committed Oct 24, 2019
1 parent 143ae3c commit 36db19c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ option(WITH_HTTP "Enable HTTP protocol support (client/server)" ON)
option(WITH_CN_EXTREMELITE "CryptoNight-Extremelite support" ON)
option(WITH_DEBUG_LOG "Enable debug log output" OFF)
option(WITH_TLS "Enable OpenSSL support" ON)
option(WITH_ZLIB "Enabled gzip compression on CC (client/server)")
option(WITH_ZLIB "Enabled gzip compression on CC (client/server)" OFF)
option(WITH_ASM "Enable ASM PoW implementations" ON)
option(WITH_EMBEDDED_CONFIG "Enable internal embedded JSON config" OFF)
option(WITH_CC_CLIENT "CC Client" ON)
Expand Down Expand Up @@ -262,6 +262,7 @@ if (WITH_CC_SERVER OR WITH_CC_CLIENT)
src/cc/GPUInfo.cpp)

if (WITH_ZLIB)
set(ZLIB_ROOT ${XMRIG_DEPS})
find_package(ZLIB)
add_definitions(/DCPPHTTPLIB_ZLIB_SUPPORT)
endif()
Expand All @@ -280,7 +281,7 @@ if (WITH_DEBUG_LOG)
endif()

add_executable(xmrigMiner ${HEADERS} ${SOURCES} ${SOURCES_OS} ${SOURCES_CPUID} ${HEADERS_CRYPTO} ${SOURCES_CRYPTO} ${SOURCES_SYSLOG} ${TLS_SOURCES} ${XMRIG_ASM_SOURCES} ${CN_GPU_SOURCES} ${SOURCES_CC_CLIENT} ${SOURCES_CC_COMMON})
target_link_libraries(xmrigMiner ${XMRIG_ASM_LIBRARY} ${OPENSSL_LIBRARIES} ${UV_LIBRARIES} ${EXTRA_LIBS} ${CPUID_LIB} ${ARGON2_LIBRARY})
target_link_libraries(xmrigMiner ${XMRIG_ASM_LIBRARY} ${OPENSSL_LIBRARIES} ${UV_LIBRARIES} ${EXTRA_LIBS} ${CPUID_LIB} ${ARGON2_LIBRARY} ${ZLIB_LIBRARIES})
set_target_properties(xmrigMiner PROPERTIES OUTPUT_NAME ${MINER_EXECUTABLE_NAME})

add_executable(xmrigDaemon src/cc/XMRigd.cpp res/app.rc)
Expand Down

0 comments on commit 36db19c

Please sign in to comment.