crocoddyl: enable multithread

This commit is contained in:
Guilhem Saurel
2026-06-05 23:24:58 +02:00
parent 3ea7bd2f29
commit 55adea6c16
+10
View File
@@ -7,10 +7,13 @@
ffmpeg,
ipopt,
lapack,
llvmPackages,
lib,
pinocchio,
pkg-config,
stdenv,
withMultithread ? true,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -45,6 +48,10 @@ stdenv.mkDerivation (finalAttrs: {
pinocchio
];
buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && withMultithread) [
llvmPackages.openmp
];
checkInputs = [
ffmpeg
];
@@ -53,8 +60,11 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "INSTALL_DOCUMENTATION" true)
(lib.cmakeBool "BUILD_EXAMPLES" false)
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" false)
(lib.cmakeBool "BUILD_WITH_MULTITHREADS" withMultithread)
];
passthru = { inherit withMultithread; };
prePatch = ''
substituteInPlace \
examples/CMakeLists.txt \