From 0e5be4486c7d0dd0c2791094ba95cc36474c7b0d Mon Sep 17 00:00:00 2001 From: Oliver Lantwin Date: Thu, 23 Jul 2026 09:47:33 +0200 Subject: [PATCH] fix: add mp-units to package host dependencies CMakeLists.txt does `find_package(mp-units 2.5 CONFIG REQUIRED)` for the SHiP::SHiPUnits target, so mp-units is needed in the build (host) environment. It was only listed in the workspace `[dependencies]` (this repo's own dev env), not in `[package.host-dependencies]`, so building shipdatamodel as a pixi source dependency fails at CMake configure: Could not find a package configuration file provided by "mp-units" (requested version 2.5) The release recipe (ship-conda-recipes/recipes/shipdatamodel) already lists mp-units in its host:; mirror it here. --- pixi.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pixi.toml b/pixi.toml index 406dc9f..68b75a8 100644 --- a/pixi.toml +++ b/pixi.toml @@ -39,6 +39,12 @@ extra-args = [ # root_base's run_exports range. root_base = { version = "*", build = "cxx23_*" } root_cxx_standard = "==23" +# Needed at build time: CMakeLists.txt does find_package(mp-units 2.5 CONFIG +# REQUIRED) for the SHiP::SHiPUnits target. Mirrors the release recipe's +# host: (ship-conda-recipes/recipes/shipdatamodel); the workspace +# [dependencies] entry below only covers this repo's own dev env, not the +# pixi-build host environment. +mp-units = ">=2.5" [dependencies] cxx-compiler = "*"