diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-09-28 20:55:25 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-09-28 21:00:55 +0300 |
commit | 86ec9d79eca2a31044a5096df5d5ee244d15708d (patch) | |
tree | a33ea71034997d1137b8a43e4d90fc226b4e4315 /extern/CMakeLists.txt | |
parent | e45ffce5fadd55ebead3fd1a89964f330baac526 (diff) |
Fix build without Cycles HIP device
Diffstat (limited to 'extern/CMakeLists.txt')
-rw-r--r-- | extern/CMakeLists.txt | 4 |
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() |