diff options
Diffstat (limited to 'intern/cycles/kernel/CMakeLists.txt')
-rw-r--r-- | intern/cycles/kernel/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt index cfd503a621d..d660289ed17 100644 --- a/intern/cycles/kernel/CMakeLists.txt +++ b/intern/cycles/kernel/CMakeLists.txt @@ -407,6 +407,11 @@ if(WITH_CYCLES_CUDA_BINARIES) -o ${CMAKE_CURRENT_BINARY_DIR}/${cuda_file} -Wno-deprecated-gpu-targets) + if(CUDA_HOST_COMPILER) + set(cuda_flags ${cuda_flags} + -ccbin="${CUDA_HOST_COMPILER}") + endif() + if(WITH_NANOVDB) set(cuda_flags ${cuda_flags} -D WITH_NANOVDB |