mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
blender: respect cudaCapabilities (#535873)
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
ceres-solver,
|
||||
cmake,
|
||||
config,
|
||||
cudaArches ? cudaPackages.flags.realArches,
|
||||
cudaPackages,
|
||||
cudaSupport ? config.cudaSupport,
|
||||
dbus,
|
||||
@@ -201,6 +202,7 @@ stdenv'.mkDerivation (finalAttrs: {
|
||||
(lib.cmakeFeature "ALEMBIC_LIBRARY" "${lib.getLib alembic}/lib/libAlembic${stdenv.hostPlatform.extensions.sharedLibrary}")
|
||||
]
|
||||
++ lib.optionals cudaSupport [
|
||||
(lib.cmakeFeature "CYCLES_CUDA_BINARIES_ARCH" (lib.concatStringsSep ";" cudaArches))
|
||||
(lib.cmakeFeature "OPTIX_ROOT_DIR" "${optix}")
|
||||
(lib.cmakeBool "WITH_CYCLES_CUDA_BINARIES" true)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user