Create and add FindLMDB to CMakeLists.txt
ClosedPublic

Authored by filipesaraiva on Mar 3 2017, 5:59 PM.

Details

Summary

Currently CMakeLists doesn't look for LMDB, a required dependency
for sink. This commit creates a FindLMDB script based in an original
script available in BSD license and add it to CMakeLists.txt.

Test Plan

Remove LMDB development library and try to compile sink. The CMake
process will end with success but in compilation time you will get
the follow error message sink/common/storage_lmdb.cpp:35:18: fatal
error: lmdb.h: Arquivo ou diretório não encontrado compilation terminated.

After apply the patch, the look for LMDB will work and the CMake
process will fail because there is not LMDB installed.

So, just install LMDB development and the CMake process will find
the library and the process will end successfully.

Diff Detail

Repository
R9 Sink
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
filipesaraiva created this revision.Mar 3 2017, 5:59 PM
filipesaraiva added a subscriber: Sink.

The FindLMDB.cmake was based in this version.

cmollekopf accepted this revision.Mar 4 2017, 6:24 PM
This revision is now accepted and ready to land.Mar 4 2017, 6:24 PM
filipesaraiva closed this revision.Mar 4 2017, 8:31 PM