mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
CMake: fix Cycles linking with OpenCL
This commit is contained in:
parent
eb844fc1da
commit
9ade9d247d
2 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,6 @@ set(LIBRARIES
|
|||
${ZLIB_LIBRARIES}
|
||||
${TIFF_LIBRARY}
|
||||
${PTHREADS_LIBRARIES}
|
||||
extern_clew
|
||||
)
|
||||
|
||||
if(WITH_CUDA_DYNLOAD)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue