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:
authorBrecht Van Lommel <brecht@blender.org>2021-09-28 20:55:25 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-09-28 21:00:55 +0300
commit86ec9d79eca2a31044a5096df5d5ee244d15708d (patch)
treea33ea71034997d1137b8a43e4d90fc226b4e4315 /intern/cycles/cmake/macros.cmake
parente45ffce5fadd55ebead3fd1a89964f330baac526 (diff)
Fix build without Cycles HIP device
Diffstat (limited to 'intern/cycles/cmake/macros.cmake')
-rw-r--r--intern/cycles/cmake/macros.cmake12
1 files changed, 7 insertions, 5 deletions
diff --git a/intern/cycles/cmake/macros.cmake b/intern/cycles/cmake/macros.cmake
index 172ae280cea..a470fb9c574 100644
--- a/intern/cycles/cmake/macros.cmake
+++ b/intern/cycles/cmake/macros.cmake
@@ -156,13 +156,15 @@ macro(cycles_target_link_libraries target)
${PLATFORM_LINKLIBS}
)
- if(WITH_CUDA_DYNLOAD)
- target_link_libraries(${target} extern_cuew)
- else()
- target_link_libraries(${target} ${CUDA_CUDA_LIBRARY})
+ if(WITH_CYCLES_DEVICE_CUDA OR WITH_CYCLES_DEVICE_OPTIX)
+ if(WITH_CUDA_DYNLOAD)
+ target_link_libraries(${target} extern_cuew)
+ else()
+ target_link_libraries(${target} ${CUDA_CUDA_LIBRARY})
+ endif()
endif()
- if(WITH_HIP_DYNLOAD)
+ if(WITH_CYCLES_DEVICE_HIP AND WITH_HIP_DYNLOAD)
target_link_libraries(${target} extern_hipew)
endif()