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
path: root/extern
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 /extern
parente45ffce5fadd55ebead3fd1a89964f330baac526 (diff)
Fix build without Cycles HIP device
Diffstat (limited to 'extern')
-rw-r--r--extern/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt
index 2b2cca04503..1fdc8e60167 100644
--- a/extern/CMakeLists.txt
+++ b/extern/CMakeLists.txt
@@ -67,10 +67,10 @@ endif()
if(WITH_CYCLES OR WITH_COMPOSITOR OR WITH_OPENSUBDIV)
add_subdirectory(clew)
- if(WITH_CUDA_DYNLOAD)
+ if((WITH_CYCLES_DEVICE_CUDA OR WITH_CYCLES_DEVICE_OPTIX) AND WITH_CUDA_DYNLOAD)
add_subdirectory(cuew)
endif()
- if(WITH_HIP_DYNLOAD)
+ if(WITH_CYCLES_DEVICE_HIP AND WITH_HIP_DYNLOAD)
add_subdirectory(hipew)
endif()
endif()