Browse Source

Include OpenCL headers only in ETHASHCL builds.

cl-refactor
Paweł Bylica 10 years ago
parent
commit
4211a845b7
  1. 2
      ethminer/CMakeLists.txt
  2. 2
      exp/CMakeLists.txt

2
ethminer/CMakeLists.txt

@ -9,7 +9,9 @@ if (JSONRPC)
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
endif()
if (ETHASHCL)
include_directories(${OpenCL_INCLUDE_DIRS})
endif ()
set(EXECUTABLE ethminer)

2
exp/CMakeLists.txt

@ -6,7 +6,9 @@ aux_source_directory(. SRC_LIST)
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
include_directories(BEFORE ..)
include_directories(${DB_INCLUDE_DIRS})
if (ETHASHCL)
include_directories(${OpenCL_INCLUDE_DIRS})
endif ()
set(EXECUTABLE exp)

Loading…
Cancel
Save