Skip to content

Commit 4907a0e

Browse files
author
Moritz
committed
Changes to cmake
1 parent d6d17b1 commit 4907a0e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ethminer/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ set(CMAKE_CXX_STANDARD 17)
2424
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2525
set(CMAKE_CXX_EXTENSIONS OFF)
2626

27-
if(NOT DEFINED ENV{ethash_DIR})
28-
message(FATAL_ERROR "Before proceeding, please install the ethash v0.4.3 that is included with the source code. Then set ethash_DIR=/path/to/install/directory")
29-
endif()
30-
3127
include(cmake/cable/bootstrap.cmake)
3228

3329
include(CableBuildInfo)

ethminer/libethash-sycl/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ endif()
3030
file(GLOB sources "*.cpp" )
3131
file(GLOB headers "*.h" "hpp" )
3232

33+
find_package(AdaptiveCpp CONFIG REQUIRED)
34+
3335
add_library(ethash-sycl STATIC ${sources} ${headers})
34-
target_link_libraries(ethash-sycl ethcore)# ethash::ethash Boost::thread)
36+
add_sycl_to_target(TARGET ethash-sycl SOURCES ${sources})
37+
target_link_libraries(ethash-sycl PUBLIC AdaptiveCpp::acpp-rt ethcore)
3538
include_directories(..)
3639

0 commit comments

Comments
 (0)