Page MenuHomePhabricator

[CMAKE] Fix missing protobuf include directory
ClosedPublic

Authored by Fabien on May 13 2019, 08:06.

Details

Summary

The Protobuf include directory has been mistakenly removed in D3016.

This patch reverts the previous wrong change.

Full explanation:
The include directories are automatically added by CMake when using
target_link_libraries on IMPORTED target, but this is not the case
here. IMPORTED targets have been added for protobuf in later CMake
versions, past our minimum required one.

Test Plan
mkdir buildcmake && cd buildcmake
cmake -GNinja ..
ninja
./src/qt/bitcoin-qt # Sanity check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cmake_fix_protobuf
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5821
Build 9704: Bitcoin ABC Buildbot (legacy)
Build 9703: arc lint + arc unit