HomePhabricator

[CMAKE] Hint to user to the option flags when an optional dependency is not…

Description

[CMAKE] Hint to user to the option flags when an optional dependency is not found

Summary:
Since cmake 3.16 there is an option to append a message in case of
failure to the standard error message. The output will look like:

Could NOT find Jemalloc (missing: Jemalloc_INCLUDE_DIR) (Required is at
  least version "3.6.0")

      Reason given by package: this is an optional dependency that can
be disabled by passing -DUSE_JEMALLOC=OFF to the cmake command line

Test Plan:
Uninstall an optional dependency and check the error message hints to
the option flag as expected.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

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

Details

Provenance
FabienAuthored on Jun 8 2021, 09:19
FabienPushed on Jun 8 2021, 11:43
Reviewer
Restricted Project
Differential Revision
D9645: [CMAKE] Hint to user to the option flags when an optional dependency is not found
Parents
rABC1d26b7dbb65d: walletdb: Remove unused static functions from walletdb.h
Branches
Unknown
Tags
Unknown