HomePhabricator

[CMAKE] Add DEBUG and DEBUG_LOCKORDER definitions to the Debug config

Description

[CMAKE] Add DEBUG and DEBUG_LOCKORDER definitions to the Debug config

Summary:
This add definitions for DEBUG and DEBUG_LOCKORDER when the Debug
build type is used.
This allow the use of cmake -GNinja -DCMAKE_BUILD_TYPE=Debug as an
equivalent to configure --enable-debug.

Test Plan:

mkdir buildcmake && cd buildcmake
cmake -GNinja .. -DCMAKE_BUILD_TYPE=Debug
ninja -v

Check that the -DDEBUG -DDEBUG_LOCKORDER flags are added to the
CXX compile lines.

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2656

Details

Provenance
FabienAuthored on Mar 6 2019, 11:19
FabienPushed on Mar 19 2019, 10:42
Reviewer
Restricted Project
Differential Revision
D2656: [CMAKE] Add DEBUG and DEBUG_LOCKORDER definitions to the Debug config
Parents
rSTAGINGb98b41c54ab4: test: Replace remaining sprintf with snprintf
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/7746, tag: phabricator/base/7745, tag: phabricator/base/7741