From e74e622776a53e4ab5696d4b6fd17638dc2e9210 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 11 Feb 2016 13:51:47 +0100 Subject: Fix compilation error when CUDA toolkit is not installed After CUDA dynload changes having CUDA toolkit became required in order to compile Cycles. This only happened due to wrong default value to the option. --- intern/cycles/cmake/external_libs.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'intern/cycles/cmake/external_libs.cmake') diff --git a/intern/cycles/cmake/external_libs.cmake b/intern/cycles/cmake/external_libs.cmake index 616dd940801..403a0540963 100644 --- a/intern/cycles/cmake/external_libs.cmake +++ b/intern/cycles/cmake/external_libs.cmake @@ -44,6 +44,10 @@ if(WITH_CYCLES_CUDA_BINARIES OR NOT WITH_CUDA_DYNLOAD) else() message(STATUS "CUDA compiler not found, disabling WITH_CYCLES_CUDA_BINARIES") set(WITH_CYCLES_CUDA_BINARIES OFF) + if(NOT WITH_CUDA_DYNLOAD) + message(STATUS "Additionally falling back to dynamic CUDA load") + set(WITH_CUDA_DYNLOAD ON) + endif() endif() endif() -- cgit v1.2.3