Fix compilation error with CLEW enabled

For some reason it compiled fine on the desktop but
compilation on laptop requires explicit linking against
dl library.
This commit is contained in:
Sergey Sharybin 2014-05-25 04:39:36 +02:00
parent 46baf7af2f
commit 7b5a25f63d

View File

@ -429,7 +429,7 @@ if(OPENCL_FOUND)
-DOPENSUBDIV_HAS_CLEW
)
set(OPENCL_INCLUDE_DIRS ${CLEW_INCLUDE_DIR})
set(OPENCL_LIBRARIES ${CLEW_LIBRARY})
set(OPENCL_LIBRARIES ${CLEW_LIBRARY} ${CMAKE_DL_LIBS})
else()
if (NOT NO_CLEW)
message(WARNING