Fixed cmake again.

This commit is contained in:
XMRig 2019-07-24 06:35:42 +07:00
parent fc58795e8f
commit 107f378f7c
2 changed files with 6 additions and 6 deletions

View file

@ -16,6 +16,10 @@ option(BUILD_STATIC "Build static binary" OFF)
option(ARM_TARGET "Force use specific ARM target 8 or 7" 0)
option(WITH_EMBEDDED_CONFIG "Enable internal embedded JSON config" OFF)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
include (CheckIncludeFile)
include (cmake/cpu.cmake)
include (src/base/base.cmake)
@ -143,14 +147,8 @@ endif()
add_definitions(/D__STDC_FORMAT_MACROS)
add_definitions(/DUNICODE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
find_package(UV REQUIRED)
if (WITH_HWLOC)
find_package(HWLOC REQUIRED)
endif()
if (WITH_RANDOMX)
include_directories(src/crypto/randomx)
add_definitions(/DXMRIG_ALGO_RANDOMX)

View file

@ -19,6 +19,8 @@ set(SOURCES_BACKEND_CPU
if (WITH_HWLOC)
find_package(HWLOC REQUIRED)
set(WITH_LIBCPUID OFF)
include_directories(${HWLOC_INCLUDE_DIR})