Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-19 15:00:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-19 15:00:16 +0300
commit9ade9d247d90d348b0d84c3ef5644982de24e9ef (patch)
tree6d1aa8caf17628fc719923578cc5af83b8b1f9cc /intern/cycles
parenteb844fc1da4b39aea3b9cd1c5091cdb56a81cae0 (diff)
CMake: fix Cycles linking with OpenCL
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/app/CMakeLists.txt1
-rw-r--r--intern/cycles/device/CMakeLists.txt3
2 files changed, 3 insertions, 1 deletions
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)