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")

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to