1
0
Fork 0
forked from lthn/blockchain

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.
This commit is contained in:
Snider 2025-10-13 18:43:12 +01:00
parent 44029220a5
commit 49573e94b6

View file

@ -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)"