This PR proposes reducing code repetition by reusing CMake utilities (functions and macros) shared between this project and Bitcoin Core. Both projects use similar functionality, including:
- Defining a default build configuration.
- Modifying configuration-specific flags.
- Checking compiler and linker flags.
- Reporting a summary.
To achieve this, I suggest creating a dedicated repository under https://github.com/bitcoin-core to house these utilities. Such a repository could also benefit other projects like https://github.com/sipa/minisketch and https://github.com/chaincodelabs/libmultiprocess. Additionally, the CMake utilities repository could include CI tests for the provided utilities.
Seeking Concept (N)ACKs for this proposal. Please note that only one function is replaced in this PR.