You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with the one that is included with HPX is that the official module exports OpenCL_INCLUDE_DIRS and OpenCL_LIBRARIES, while HPX one exports OPENCL_INCLUDE_DIRS and OPENCL_LIBRARIES (note the difference in capitalization). Both modules export OpenCL_FOUND though, so, when a project depends both on OpenCL and HPX, different set of variables will be available, depending on which comes first in CMakeLists.txt: find_package(OpenCL) or find_package(HPX). This may lead to interesting results when one expects one or the other naming convention.
I could try and replace OPENCL_* variable names with OpenCL_* ones throughout HPX cmake files. Would that be acceptable?
The text was updated successfully, but these errors were encountered:
CMake since v3.1 includes FindOpenCL.cmake.
The problem with the one that is included with HPX is that the official module exports
OpenCL_INCLUDE_DIRS
andOpenCL_LIBRARIES
, while HPX one exportsOPENCL_INCLUDE_DIRS
andOPENCL_LIBRARIES
(note the difference in capitalization). Both modules exportOpenCL_FOUND
though, so, when a project depends both on OpenCL and HPX, different set of variables will be available, depending on which comes first inCMakeLists.txt
:find_package(OpenCL)
orfind_package(HPX)
. This may lead to interesting results when one expects one or the other naming convention.I could try and replace
OPENCL_*
variable names withOpenCL_*
ones throughout HPX cmake files. Would that be acceptable?The text was updated successfully, but these errors were encountered: