digikam: add conditional cmake flag for cudaSupport

This commit is contained in:
NovaViper 2024-11-16 16:41:07 -06:00
parent 66d813d978
commit 5fbc2731f4
No known key found for this signature in database
GPG Key ID: 2F08F1907095468B

View File

@ -37,6 +37,8 @@
x265,
libGLX,
libGLU,
cudaPackages,
enableCuda ? config.cudaSupport,
kdePackages,
@ -178,6 +180,7 @@ stdenv.mkDerivation (finalAttrs: {
#(lib.cmakeBool "ENABLE_AKONADICONTACTSUPPORT" true)
(lib.cmakeBool "ENABLE_MEDIAPLAYER" true)
(lib.cmakeBool "ENABLE_APPSTYLES" true)
(lib.optionals enableCuda "-DCUDA_TOOLKIT_ROOT_DIR=${cudaPackages.cudatoolkit}")
];
# Tests segfault for some reason…