reduce sqlite memory usage

This commit is contained in:
andrew (from workstation) 2020-01-05 14:27:04 +01:00
parent c41297c2a2
commit 85e4988d11

View File

@ -17,6 +17,8 @@ target_include_directories(tdsqlite PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOU
target_include_directories(tdsqlite SYSTEM PRIVATE ${OPENSSL_INCLUDE_DIR})
target_link_libraries(tdsqlite PRIVATE ${OPENSSL_CRYPTO_LIBRARY} ${CMAKE_DL_LIBS} ${ZLIB_LIBRARIES})
target_compile_definitions(tdsqlite PRIVATE -DSQLITE_MAX_MMAP_SIZE=268427264 -DSQLITE_ENABLE_SORTER_REFERENCES -DSQLITE_DIRECT_OVERFLOW_READ)
if (NOT WIN32)
target_compile_definitions(tdsqlite PRIVATE -DHAVE_USLEEP -DNDEBUG=1)
endif()