Fix cmake path finding for amd libs.

There is no WIN64 defined in the environment.
This commit is contained in:
peng xiao 2013-06-19 11:31:42 +08:00
parent 25613fbfd7
commit 9ecbce0111

View File

@ -44,7 +44,7 @@ if(OPENCL_FOUND)
set(OPENCL_INCLUDE_DIRS ${OPENCL_INCLUDE_DIR})
set(OPENCL_LIBRARIES ${OPENCL_LIBRARY})
if(WIN64)
if(WIN32 AND X86_64)
set(CLAMD_POSSIBLE_LIB_SUFFIXES lib64/import)
elseif(WIN32)
set(CLAMD_POSSIBLE_LIB_SUFFIXES lib32/import)