[cmake] Check for the presence of the the daemon library call
Summary: daemon is only defined on some plateform and checked in the codebase using a define in the configuration. This ensures that cmake produces the proper define in its configuration.
Test Plan:
Build with cmake/ninja
./src/bitcoind -daemon tail -f ~/.bitcoin/debug.log
Ensures that the node catches up with the chain as expected.
Reviewers: #bitcoin_abc, schancel
Reviewed By: #bitcoin_abc, schancel
Subscribers: teamcity
Differential Revision: https://reviews.bitcoinabc.org/D1770