HomePhabricator

[CMAKE] Avoid dependencies when building native bin during cross build

Description

[CMAKE] Avoid dependencies when building native bin during cross build

Summary:
The NativeExecutable.cmake module will run CMake from the top level
with all the default options, leading to some dependencies being
required while they is no use for it.
This will remove the need for most host side dependencies when running
the gitian builds with CMake.

Test Plan:

ninja check

Cross build for any platform.

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D4425