|
|
@ -302,6 +302,19 @@ endif()
|
|
|
|
add_subdirectory(external)
|
|
|
|
add_subdirectory(external)
|
|
|
|
include_directories(SYSTEM external/sqlite_orm/include)
|
|
|
|
include_directories(SYSTEM external/sqlite_orm/include)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
option(USE_JEMALLOC "Link to jemalloc for memory allocations, if found" ON)
|
|
|
|
|
|
|
|
if(USE_JEMALLOC AND NOT STATIC_LINK)
|
|
|
|
|
|
|
|
pkg_check_modules(JEMALLOC jemalloc IMPORTED_TARGET)
|
|
|
|
|
|
|
|
if(JEMALLOC_FOUND)
|
|
|
|
|
|
|
|
target_link_libraries(base_libs INTERFACE PkgConfig::JEMALLOC)
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
message(STATUS "jemalloc not found, not linking to jemalloc")
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
message(STATUS "jemalloc support disabled")
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(ANDROID)
|
|
|
|
if(ANDROID)
|
|
|
|
target_link_libraries(base_libs INTERFACE log)
|
|
|
|
target_link_libraries(base_libs INTERFACE log)
|
|
|
|
target_compile_definitions(base_libs INTERFACE ANDROID)
|
|
|
|
target_compile_definitions(base_libs INTERFACE ANDROID)
|
|
|
|