diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d9d515d1e5..73d219e0e1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -399,6 +399,9 @@ mark_as_advanced(WITH_CYCLES_LOGGING) mark_as_advanced(WITH_CYCLES_DEBUG) mark_as_advanced(WITH_CYCLES_WERROR) +option(WITH_CUDA_DYNLOAD "Dynamically load CUDA libraries at runtime" ON) +mark_as_advanced(WITH_CUDA_DYNLOAD) + # LLVM option(WITH_LLVM "Use LLVM" OFF) if(APPLE) @@ -2906,7 +2909,9 @@ if(WITH_BLENDER OR WITH_PLAYER) elseif(WITH_CYCLES_STANDALONE) add_subdirectory(intern/cycles) add_subdirectory(extern/clew) - add_subdirectory(extern/cuew) + if(WITH_CUDA_DYNLOAD) + add_subdirectory(extern/cuew) + endif() if(NOT WITH_SYSTEM_GLEW) add_subdirectory(extern/glew) endif() |