From c91fb0b2d434fff40477eb0fcb11bd52e5c2a188 Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Tue, 2 Sep 2025 12:04:24 +0200 Subject: [PATCH 1/3] Fix profile.d installation --- micromamba/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/micromamba/CMakeLists.txt b/micromamba/CMakeLists.txt index 7feffbd8ed..6736832bb9 100644 --- a/micromamba/CMakeLists.txt +++ b/micromamba/CMakeLists.txt @@ -4,9 +4,10 @@ # # The full license is in the file LICENSE, distributed with this software. -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 4.1) cmake_policy(SET CMP0025 NEW) # Introduced in cmake 3.0 cmake_policy(SET CMP0077 NEW) # Introduced in cmake 3.13 +cmake_policy(SET CMP0192 NEW) # Introduced in cmake 4.1 project(micromamba) include(GNUInstallDirs) @@ -125,7 +126,7 @@ if(BUILD_SHARED AND UNIX) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/etc/profile.d/mamba.sh - DESTINATION ${CMAKE_INSTALL_PREFIX}/etc/profile.d/ + DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/profile.d/ ) endif() From aecd716197214fadf31fd629ac602654748ec131 Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Wed, 3 Sep 2025 17:30:23 +0200 Subject: [PATCH 2/3] Apply suggestion from @henryiii Co-authored-by: Henry Schreiner --- micromamba/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micromamba/CMakeLists.txt b/micromamba/CMakeLists.txt index 6736832bb9..7916b01ad9 100644 --- a/micromamba/CMakeLists.txt +++ b/micromamba/CMakeLists.txt @@ -4,7 +4,7 @@ # # The full license is in the file LICENSE, distributed with this software. -cmake_minimum_required(VERSION 4.1) +cmake_minimum_required(VERSION 3.16...4.1) cmake_policy(SET CMP0025 NEW) # Introduced in cmake 3.0 cmake_policy(SET CMP0077 NEW) # Introduced in cmake 3.13 cmake_policy(SET CMP0192 NEW) # Introduced in cmake 4.1 From 2456218d27eb51c7be3c5d6a5ce7b006c82df1f8 Mon Sep 17 00:00:00 2001 From: "Philipp A." Date: Wed, 3 Sep 2025 17:30:29 +0200 Subject: [PATCH 3/3] Apply suggestion from @henryiii Co-authored-by: Henry Schreiner --- micromamba/CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/micromamba/CMakeLists.txt b/micromamba/CMakeLists.txt index 7916b01ad9..a323cf9d60 100644 --- a/micromamba/CMakeLists.txt +++ b/micromamba/CMakeLists.txt @@ -5,9 +5,6 @@ # The full license is in the file LICENSE, distributed with this software. cmake_minimum_required(VERSION 3.16...4.1) -cmake_policy(SET CMP0025 NEW) # Introduced in cmake 3.0 -cmake_policy(SET CMP0077 NEW) # Introduced in cmake 3.13 -cmake_policy(SET CMP0192 NEW) # Introduced in cmake 4.1 project(micromamba) include(GNUInstallDirs)