diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ae89502..ca1292e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -258,4 +258,4 @@ if (WITH_DEBUG_LOG) endif() add_executable(${CMAKE_PROJECT_NAME} ${HEADERS} ${SOURCES} ${SOURCES_OS} ${SOURCES_CPUID} ${HEADERS_CRYPTO} ${SOURCES_CRYPTO} ${SOURCES_SYSLOG} ${HTTP_SOURCES} ${TLS_SOURCES} ${XMRIG_ASM_SOURCES} ${CN_GPU_SOURCES}) -target_link_libraries(${CMAKE_PROJECT_NAME} ${XMRIG_ASM_LIBRARY} ${OPENSSL_LIBRARIES} ${UV_LIBRARIES} ${EXTRA_LIBS} ${CPUID_LIB}) +target_link_libraries(${CMAKE_PROJECT_NAME} ${XMRIG_ASM_LIBRARY} ${OPENSSL_LIBRARIES} ${UV_LIBRARIES} ${EXTRA_LIBS} ${CPUID_LIB} ${HWLOC_LIBRARY}) diff --git a/src/backend/cpu/cpu.cmake b/src/backend/cpu/cpu.cmake index a8bbd8e8..f0b1a486 100644 --- a/src/backend/cpu/cpu.cmake +++ b/src/backend/cpu/cpu.cmake @@ -22,11 +22,11 @@ if (WITH_HWLOC) set(WITH_LIBCPUID OFF) include_directories(${HWLOC_INCLUDE_DIR}) - set(CPUID_LIB ${HWLOC_LIBRARY}) remove_definitions(/DXMRIG_FEATURE_LIBCPUID) add_definitions(/DXMRIG_FEATURE_HWLOC) + set(CPUID_LIB "") set(SOURCES_CPUID src/backend/cpu/platform/BasicCpuInfo.cpp src/backend/cpu/platform/BasicCpuInfo.h