python3Packages.lightgbm: fix cuda build

nvcc needs `-std=c++14` to successfully compile.
This commit is contained in:
Florian Klink
2026-04-09 23:47:47 +01:00
parent e73227e28c
commit 1105607618
@@ -93,6 +93,10 @@ buildPythonPackage rec {
# Set in pyproject.toml for `cmake.args` in `[tool.scikit-build]`,
# but not set by our hooks.
(lib.cmakeBool "__BUILD_FOR_PYTHON" true)
]
++ lib.optionals cudaSupport [
# build fails otherwise
(lib.cmakeFeature "CMAKE_CUDA_STANDARD" "14")
];
optional-dependencies = {