CMake: fix Cycles linking with OpenCL
authorCampbell Barton <ideasman42@gmail.com>
Fri, 19 Apr 2019 12:00:16 +0000 (14:00 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 19 Apr 2019 12:00:16 +0000 (14:00 +0200)
intern/cycles/app/CMakeLists.txt
intern/cycles/device/CMakeLists.txt

index 36e3e17..d67a72a 100644 (file)
@@ -22,7 +22,6 @@ set(LIBRARIES
   ${ZLIB_LIBRARIES}
   ${TIFF_LIBRARY}
   ${PTHREADS_LIBRARIES}
-  extern_clew
 )
 
 if(WITH_CUDA_DYNLOAD)
index 75f4a72..3e14480 100644 (file)
@@ -77,6 +77,9 @@ if(WITH_CYCLES_NETWORK)
   add_definitions(-DWITH_NETWORK)
 endif()
 if(WITH_CYCLES_DEVICE_OPENCL)
+  list(APPEND LIB
+    extern_clew
+  )
   add_definitions(-DWITH_OPENCL)
 endif()
 if(WITH_CYCLES_DEVICE_CUDA)