Page MenuHomePhabricator

Improve cmake's config file generation
ClosedPublic

Authored by deadalnix on Dec 18 2017, 01:21.

Details

Summary

As per title. Using 1 instead of the value makes the end result more predictible.

Test Plan
ninja

Diff Detail

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

Event Timeline

schancel requested changes to this revision.Dec 19 2017, 00:22
schancel added inline comments.
src/config/bitcoin-config.h.cmake.in
22 ↗(On Diff #2182)

Seems like these would be better as #cmakedefine01

This revision now requires changes to proceed.Dec 19 2017, 00:22
deadalnix added inline comments.
src/config/bitcoin-config.h.cmake.in
22 ↗(On Diff #2182)

No, the semantic is different as cmake01 always define the symbol.

#if defined(FOO)

behaves differently.

This revision is now accepted and ready to land.Dec 19 2017, 19:08
This revision was automatically updated to reflect the committed changes.