mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 18:11:05 +00:00
25 lines
610 B
CMake
25 lines
610 B
CMake
find_path(
|
|
HWLOC_INCLUDE_DIR
|
|
NAMES hwloc.h
|
|
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
|
PATH_SUFFIXES "include"
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
find_path(HWLOC_INCLUDE_DIR NAMES hwloc.h)
|
|
|
|
find_library(
|
|
HWLOC_LIBRARY
|
|
NAMES hwloc.a hwloc libhwloc
|
|
PATHS "${XMRIG_DEPS}" ENV "XMRIG_DEPS"
|
|
PATH_SUFFIXES "lib"
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
find_library(HWLOC_LIBRARY NAMES hwloc.a hwloc libhwloc)
|
|
|
|
set(HWLOC_LIBRARIES ${HWLOC_LIBRARY})
|
|
set(HWLOC_INCLUDE_DIRS ${HWLOC_INCLUDE_DIR})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(HWLOC DEFAULT_MSG HWLOC_LIBRARY HWLOC_INCLUDE_DIR)
|