memory sbrik and sbrak #10

Manually merged
andreacavalli merged 1 commits from :mm_management into fork 2020-01-12 16:26:45 +01:00
Showing only changes of commit 2101b5a515 - Show all commits

View File

@ -17,7 +17,13 @@ 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=50331648 -DSQLITE_MAX_MEMORY=50331648 -DSQLITE_ENABLE_SORTER_REFERENCES -DSQLITE_DIRECT_OVERFLOW_READ)
target_compile_definitions(tdsqlite PRIVATE
-DSQLITE_MAX_MMAP_SIZE=50331648
-DSQLITE_MAX_MEMORY=50331648
-DSQLITE_ENABLE_SORTER_REFERENCES
-DSQLITE_DIRECT_OVERFLOW_READ
-DSQLITE_ENABLE_MEMORY_MANAGEMENT
)
if (NOT WIN32)
target_compile_definitions(tdsqlite PRIVATE -DHAVE_USLEEP -DNDEBUG=1)