From 5fb0acd29b1d63c1c0d76da328cd5ff3cf572ecd Mon Sep 17 00:00:00 2001 From: ethdev zug Date: Tue, 14 Apr 2015 21:21:54 +0100 Subject: [PATCH] ethashcl on x64 :) --- libethash-cl/CMakeLists.txt | 2 +- libethcore/CMakeLists.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libethash-cl/CMakeLists.txt b/libethash-cl/CMakeLists.txt index d5f6792e1..fdc2dad07 100644 --- a/libethash-cl/CMakeLists.txt +++ b/libethash-cl/CMakeLists.txt @@ -9,7 +9,7 @@ aux_source_directory(. SRC_LIST) file(GLOB HEADERS "*.h") include_directories(${CMAKE_CURRENT_BINARY_DIR}) -include_directories(${OpenCL_INCLUDE_DIRS}}) +include_directories(${OpenCL_INCLUDE_DIRS}) include_directories(..) add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS}) TARGET_LINK_LIBRARIES(${EXECUTABLE} ${OpenCL_LIBRARIES} ethash) diff --git a/libethcore/CMakeLists.txt b/libethcore/CMakeLists.txt index 6ef7b928c..322ac80ea 100644 --- a/libethcore/CMakeLists.txt +++ b/libethcore/CMakeLists.txt @@ -11,6 +11,11 @@ aux_source_directory(. SRC_LIST) include_directories(BEFORE ..) include_directories(${Boost_INCLUDE_DIRS}) + +if (ETHASHCL) + include_directories(${OpenCL_INCLUDE_DIRS}) +endif () + if (CPUID_FOUND) include_directories(${Cpuid_INCLUDE_DIRS}) endif ()