Page MenuHomePhabricator

[CMAKE] Move the OpenSSL symbol detection to Qt rather than config
ClosedPublic

Authored by Fabien on May 25 2020, 19:18.

Details

Summary

This is a follow-up for the comment
https://reviews.bitcoinabc.org/D6243#inline-39530

The symbol is tightly coupled to OpenSSL, which only use it for BIP70
support in the GUI. This diff moves the check in the GUI where it
belongs and sets a preprocessor definition instead of setting the
definition in the config header.

Test Plan
ninja all check-bitcoin-qt

Cross build for all platforms.

Diff Detail

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

Event Timeline

Fabien requested review of this revision.May 25 2020, 19:18
deadalnix requested changes to this revision.May 25 2020, 20:14
deadalnix added a subscriber: deadalnix.

You need to fix the cmake file, but this looks good.

src/qt/CMakeLists.txt
260 ↗(On Diff #20599)

There is something screwed up with the indentation.

It seems like linter that warn about this wouldn't be very difficult to write, but maybe not.

This revision now requires changes to proceed.May 25 2020, 20:14
src/qt/CMakeLists.txt
260 ↗(On Diff #20599)

Actually I think there is a cmake linter available, but I never took the time to look into it.

This revision is now accepted and ready to land.May 25 2020, 23:25