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 36e3e179be5986836ffc707490eb859ae7b9ad70..d67a72ab7db91f0da1489701c6608515230afa94 100644 (file)
@@ -22,7 +22,6 @@ set(LIBRARIES
   ${ZLIB_LIBRARIES}
   ${TIFF_LIBRARY}
   ${PTHREADS_LIBRARIES}
-  extern_clew
 )
 
 if(WITH_CUDA_DYNLOAD)
index 75f4a72bee36d44087ba7ff4af2b41d3c13bbb05..3e14480e2ad7920a89aeca605170d75c672642aa 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)