mdbx-cmake: support of MDBX_USE_FALLOCATE for CMake and Conan.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2025-10-20 12:52:36 +03:00
parent a14fe7f195
commit dc5f119de1
5 changed files with 17 additions and 2 deletions

View File

@@ -705,6 +705,8 @@ mark_as_advanced(MDBX_ENABLE_PROFGC)
add_option(MDBX ENABLE_DBI_SPARSE
"Support for sparse sets of DBI handles to reduce overhead when starting and processing transactions" ON)
add_option(MDBX ENABLE_DBI_LOCKFREE "Support for deferred releasing and a lockfree path to quickly open DBI handles" ON)
add_option(MDBX USE_FALLOCATE "Using posix_fallocate() or fcntl(F_PREALLOCATE) on OSX" AUTO)
mark_as_advanced(MDBX_USE_FALLOCATE)
if(NOT MDBX_AMALGAMATED_SOURCE)
if(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE_UPPERCASE STREQUAL "DEBUG")