hebasto / bitcoin

Bitcoin Core integration/staging tree
https://bitcoincore.org/en/download
MIT License
20 stars 5 forks source link

cmake: Forbid in-source builds #314

Closed hebasto closed 1 month ago

hebasto commented 1 month ago

In-source builds with CMake are incompatible with Autotools because the Makefile files are being overwritten.

This PR provides a clear error message if the user attempts to perform an in-source build.

Unfortunately, this approach does not prevent the source directory from being polluted with a few build artifacts. For more details, please see:

Resolves https://github.com/hebasto/bitcoin/issues/306.


The allowance of in-source builds can be reconsidered after completing the migration from Autotools.

hebasto commented 1 month ago

Unfortunately, this approach does not prevent the source directory from being polluted with a few build artifacts.

If in a git repository, the git clean -fd command will help delete these artifacts.