Browse Source

Include OpenCL headers only in ETHASHCL builds.

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

4
ethminer/CMakeLists.txt

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

4
exp/CMakeLists.txt

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

Loading…
Cancel
Save