[Bf-blender-cvs] [205254150ae] master: Build: don't look for CUDA toolkit if not using Cycles CUDA device
Brecht Van Lommel
noreply at git.blender.org
Tue Dec 7 20:23:26 CET 2021
Commit: 205254150ae261051ac2e2f3b83e1bc90c042dc3
Author: Brecht Van Lommel
Date: Tue Dec 7 19:51:39 2021 +0100
Branches: master
https://developer.blender.org/rB205254150ae261051ac2e2f3b83e1bc90c042dc3
Build: don't look for CUDA toolkit if not using Cycles CUDA device
===================================================================
M CMakeLists.txt
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3eacc0d76e4..59d07fd1a74 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -851,7 +851,7 @@ if(WITH_AUDASPACE)
endif()
# Auto-enable CUDA dynload if toolkit is not found.
-if(NOT WITH_CUDA_DYNLOAD)
+if(WITH_CYCLES AND WITH_CYCLES_DEVICE_CUDA AND NOT WITH_CUDA_DYNLOAD)
find_package(CUDA)
if(NOT CUDA_FOUND)
message(STATUS "CUDA toolkit not found, using dynamic runtime loading of libraries (WITH_CUDA_DYNLOAD) instead")
More information about the Bf-blender-cvs
mailing list