diff --git a/recipe/0002-build-Only-for-Unix-systems.patch b/recipe/0002-build-Only-for-Unix-systems.patch new file mode 100644 index 0000000..7f9a65c --- /dev/null +++ b/recipe/0002-build-Only-for-Unix-systems.patch @@ -0,0 +1,32 @@ +From 33713ee0b44fea3d4ee78ab40d403bebb0e75daf Mon Sep 17 00:00:00 2001 +From: Julien Jerphanion +Date: Mon, 6 Jan 2025 13:17:03 +0100 +Subject: [PATCH] build: Only for Unix systems + +Signed-off-by: Julien Jerphanion + +Co-authored-by: Klaim +--- + micromamba/CMakeLists.txt | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/micromamba/CMakeLists.txt b/micromamba/CMakeLists.txt +index 4d313644..a75d436d 100644 +--- a/micromamba/CMakeLists.txt ++++ b/micromamba/CMakeLists.txt +@@ -105,9 +105,9 @@ endif() + # Installation + # ============ + +-# The script are only needed for mamba and not for micromamba +- +-if(BUILD_SHARED) ++# This profile script is only needed for mamba on Unix systems. ++if(BUILD_SHARED AND UNIX) ++ message(STATUS "Generating profile script for mamba (i.e. `etc/profile.d/mamba.sh`)") + configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/etc/profile.d/mamba.sh.in" + "${CMAKE_CURRENT_BINARY_DIR}/etc/profile.d/mamba.sh" +-- +2.47.1 + diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 20933d3..c93bf64 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -13,6 +13,7 @@ source: sha256: 4960fc5aa617310fb45e309a1bcfeae74085d70782443b1d2882de4400ac6a48 patches: - 0001-build-Generate-and-install-etc-profile.d-mamba.sh-fo.patch + - 0002-build-Only-for-Unix-systems.patch build: number: 2