From 7b5a25f63d471907e55d66cb799c1a47b53a5596 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sun, 25 May 2014 04:39:36 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 495740ad..da80e3f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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