Skip to content

Commit

Permalink
Fix FindOpenCL.cmake which doesn't find the OpenCL SDK on Windows. OP…
Browse files Browse the repository at this point in the history
…ENCL_LIB_SEARCH_PATH is empty since it was never assigned and fools find_library.
  • Loading branch information
tperry-amd committed Apr 6, 2018
1 parent 40333e9 commit b5ae865
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmake/FindOpenCL.cmake
Expand Up @@ -39,11 +39,9 @@ if(ENV_OPENCLROOT)
if (("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") OR ("${CMAKE_SYSTEM_NAME}" MATCHES "Windows"))
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(OPENCL_LIB_SEARCH_PATH
"${OPENCL_LIB_SEARCH_PATH}"
"${ENV_OPENCLROOT}/lib/x86")
else(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(OPENCL_LIB_SEARCH_PATH
"${OPENCL_LIB_SEARCH_PATH}"
"${ENV_OPENCLROOT}/lib/x86_64")
endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
endif(("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") OR ("${CMAKE_SYSTEM_NAME}" MATCHES "Windows"))
Expand Down

0 comments on commit b5ae865

Please sign in to comment.