Disabled BUILD_TYPE debug to improve performance

This commit is contained in:
BenDroid 2017-10-22 10:58:18 +02:00
parent e4ccdd000f
commit 77cadea8d6
3 changed files with 14 additions and 113 deletions

View file

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.0)
project(xmrig)
set(CMAKE_BUILD_TYPE Debug)
#set(CMAKE_BUILD_TYPE Debug)
option(WITH_LIBCPUID "Use Libcpuid" ON)
option(WITH_AEON "CryptoNight-Lite support" ON)
@ -301,4 +301,4 @@ if (WITH_CC AND MHD_FOUND AND CURL_FOUND)
add_executable(xmrigCCServer ${HEADERS_COMMON} ${SOURCES_COMMON} ${SOURCES_OS} ${SOURCES_CPUID} ${SOURCES_SYSLOG} ${SOURCES_CC_COMMON} ${HEADERS_CC_COMMON} ${SOURCES_CC_SERVER} ${HEADERS_CC_SERVER})
target_link_libraries(xmrigCCServer ${UV_LIBRARIES} ${MHD_LIBRARY} ${EXTRA_LIBS} ${CPUID_LIB})
set_target_properties(xmrigCCServer PROPERTIES COMPILE_FLAGS "-DXMRIG_CC_SERVER ${SHARED_FLAGS}")
endif()
endif()