Check for required L3CACHE object type in hwloc
This commit is contained in:
parent
02d45834e1
commit
634f9eba68
2 changed files with 8 additions and 0 deletions
|
@ -23,3 +23,10 @@ set(HWLOC_INCLUDE_DIRS ${HWLOC_INCLUDE_DIR})
|
|||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(HWLOC DEFAULT_MSG HWLOC_LIBRARY HWLOC_INCLUDE_DIR)
|
||||
|
||||
include(CheckCSourceCompiles)
|
||||
check_c_source_compiles( "#include <hwloc.h>\nint main(void) {hwloc_obj_t o; o->type = HWLOC_OBJ_L3CACHE; return 0;}" HAVE_HWLOC_OBJ_L3CACHE)
|
||||
if (NOT HAVE_HWLOC_OBJ_L3CACHE)
|
||||
message(STATUS "HWLOC is too old (v2 minimum), some algorithms will not be built, may cause other problems")
|
||||
set(WITH_GHOSTRIDER OFF CACHE BOOL "Enable GhostRider algorithm" FORCE)
|
||||
endif()
|
||||
|
|
|
@ -3,6 +3,7 @@ if (WITH_GHOSTRIDER)
|
|||
add_subdirectory(src/crypto/ghostrider)
|
||||
set(GHOSTRIDER_LIBRARY ghostrider)
|
||||
else()
|
||||
message(STATUS "WITH_GHOSTRIDER=OFF ... GhostRider algorithm disabled")
|
||||
remove_definitions(/DXMRIG_ALGO_GHOSTRIDER)
|
||||
set(GHOSTRIDER_LIBRARY "")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue