Skip to content

Commit

Permalink
Merge pull request #1186 from Finomnis/master
Browse files Browse the repository at this point in the history
Fixed FindOpenCL to find current AMD APP SDK
  • Loading branch information
hkaiser committed Jul 9, 2014
2 parents 40daa3e + 5e00b16 commit 8600c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindOpenCL.cmake
Expand Up @@ -28,9 +28,9 @@ ELSE (APPLE)
# The AMD SDK currently installs both x86 and x86_64 libraries
# This is only a hack to find out architecture
IF( ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64" )
SET(OPENCL_LIB_DIR "$ENV{ATISTREAMSDKROOT}/lib/x86_64")
SET(OPENCL_LIB_DIR "$ENV{AMDAPPSDKROOT}/lib/x86_64")
ELSE (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64")
SET(OPENCL_LIB_DIR "$ENV{ATISTREAMSDKROOT}/lib/x86")
SET(OPENCL_LIB_DIR "$ENV{AMDAPPSDKROOT}/lib/x86")
ENDIF( ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64" )
FIND_LIBRARY(OPENCL_LIBRARIES OpenCL.lib PATHS "${OPENCL_LIB_DIR}" ENV OpenCL_LIBPATH)
GET_FILENAME_COMPONENT(_OPENCL_INC_CAND "${OPENCL_LIB_DIR}/../../include" ABSOLUTE)
Expand Down

0 comments on commit 8600c0e

Please sign in to comment.