Page MenuHomePhabricator

[CMAKE] Fix the build with ZMQ disabled
ClosedPublic

Authored by Fabien on Apr 28 2020, 12:23.

Details

Summary

ZMQ is conditionally linked to the server library, so executables
linking against server will get ZMQ as needed.

The wallet library unconditionally links against zmq since D5840, which
can cause the build to fail if ZMQ is disabled and the linker cannot
solve the -lzmq flag.

Add a CI build configuration to catch the issue.

Test Plan
cmake -GNinja .. -DBUILD_BITCOIN_ZMQ=OFF
ninja all check check-functional

Run the build-without-zmq CI build.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 28 2020, 13:28
This revision was automatically updated to reflect the committed changes.