From 9ade9d247d90d348b0d84c3ef5644982de24e9ef Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 19 Apr 2019 14:00:16 +0200 Subject: [PATCH] CMake: fix Cycles linking with OpenCL --- intern/cycles/app/CMakeLists.txt | 1 - intern/cycles/device/CMakeLists.txt | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/intern/cycles/app/CMakeLists.txt b/intern/cycles/app/CMakeLists.txt index 36e3e179be5..d67a72ab7db 100644 --- a/intern/cycles/app/CMakeLists.txt +++ b/intern/cycles/app/CMakeLists.txt @@ -22,7 +22,6 @@ set(LIBRARIES ${ZLIB_LIBRARIES} ${TIFF_LIBRARY} ${PTHREADS_LIBRARIES} - extern_clew ) if(WITH_CUDA_DYNLOAD) diff --git a/intern/cycles/device/CMakeLists.txt b/intern/cycles/device/CMakeLists.txt index 75f4a72bee3..3e14480e2ad 100644 --- a/intern/cycles/device/CMakeLists.txt +++ b/intern/cycles/device/CMakeLists.txt @@ -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)