Allow mmap enabling in CMake script
authorIvan Maidanski <ivmai@mail.ru>
Tue, 31 Jul 2018 06:32:27 +0000 (09:32 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 31 Jul 2018 06:47:59 +0000 (09:47 +0300)
commit955d7d7f5772aa8b703f82d14fb5e45cea6bcfdd
tree0718415a27a119bcc7d9092578ddee1d3b8cef84
parent92c445197ff423a4941a20fedf7325b29ef99202
Allow mmap enabling in CMake script

* CMakeLists.txt (enable_mmap): New OPTION (off by default).
* CMakeLists.txt [!enable_munmap && enable_mmap]: Define USE_MMAP macro.
CMakeLists.txt