mim-solvers: enable multithread
This commit is contained in:
@@ -28,7 +28,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = lib.optional stdenv.hostPlatform.isDarwin llvmPackages.openmp;
|
||||
buildInputs = lib.optional (
|
||||
stdenv.hostPlatform.isDarwin && crocoddyl.withMultithread
|
||||
) llvmPackages.openmp;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
crocoddyl
|
||||
@@ -38,6 +40,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" false)
|
||||
(lib.cmakeBool "BUILD_WITH_PROXSUITE" true)
|
||||
(lib.cmakeBool "BUILD_WITH_MULTITHREADS" crocoddyl.withMultithread)
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
|
||||
Reference in New Issue
Block a user