From 49573e94b6b301723f522e28423b3aab17fdf55c Mon Sep 17 00:00:00 2001 From: Snider Date: Mon, 13 Oct 2025 18:43:12 +0100 Subject: [PATCH] Clean CPack packages only on non-Windows systems Added a conditional to the package target in the Makefile to remove the _CPack_Packages directory only when not running on Windows. This prevents potential issues with file removal on Windows environments. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 85259941..66a794c1 100644 --- a/Makefile +++ b/Makefile @@ -96,7 +96,9 @@ build-deps: conan-profile-detect package: @echo "Packaging: $(BUILD_TYPE) testnet=$(TESTNET)" (cd $(BUILD_FOLDER) && cpack) +ifneq ($(OS),Windows_NT) @rm -rf $(CURDIR)/build/packages/_CPack_Packages +endif configure: build-deps @echo "Running Configure: $(BUILD_TYPE) testnet=$(TESTNET)"