Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 20 Lines | |||||
option(ENABLE_STATIC_LIBSTDCXX "Statically link libstdc++" OFF) | option(ENABLE_STATIC_LIBSTDCXX "Statically link libstdc++" OFF) | ||||
option(ENABLE_GLIBC_BACK_COMPAT "Enable Glibc compatibility features" OFF) | option(ENABLE_GLIBC_BACK_COMPAT "Enable Glibc compatibility features" OFF) | ||||
option(ENABLE_QRCODE "Enable QR code display" ON) | option(ENABLE_QRCODE "Enable QR code display" ON) | ||||
option(ENABLE_UPNP "Enable UPnP support" ON) | option(ENABLE_UPNP "Enable UPnP support" ON) | ||||
option(START_WITH_UPNP "Make UPnP the default to map ports" OFF) | option(START_WITH_UPNP "Make UPnP the default to map ports" OFF) | ||||
option(ENABLE_CLANG_TIDY "Enable clang-tidy checks for Bitcoin ABC" OFF) | option(ENABLE_CLANG_TIDY "Enable clang-tidy checks for Bitcoin ABC" OFF) | ||||
option(ENABLE_PROFILING "Select the profiling tool to use" OFF) | option(ENABLE_PROFILING "Select the profiling tool to use" OFF) | ||||
option(USE_LD_GOLD "Try to use gold as a linker if available" ON) | option(USE_LD_GOLD "Try to use gold as a linker if available" ON) | ||||
option(USE_JEMALLOC "Use jemalloc as an allocation library" ON) | |||||
set(OS_WITH_JEMALLOC_AS_SYSTEM_DEFAULT | |||||
"Android" | |||||
"FreeBSD" | |||||
"NetBSD" | |||||
) | |||||
if(NOT CMAKE_SYSTEM_NAME IN_LIST OS_WITH_JEMALLOC_AS_SYSTEM_DEFAULT) | |||||
set(USE_JEMALLOC_DEFAULT ON) | |||||
endif() | |||||
option(USE_JEMALLOC "Use jemalloc as an allocation library" ${USE_JEMALLOC_DEFAULT}) | |||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||||
set(DEFAULT_ENABLE_DBUS_NOTIFICATIONS ON) | set(DEFAULT_ENABLE_DBUS_NOTIFICATIONS ON) | ||||
endif() | endif() | ||||
option(ENABLE_DBUS_NOTIFICATIONS "Enable DBus desktop notifications. Linux only." ${DEFAULT_ENABLE_DBUS_NOTIFICATIONS}) | option(ENABLE_DBUS_NOTIFICATIONS "Enable DBus desktop notifications. Linux only." ${DEFAULT_ENABLE_DBUS_NOTIFICATIONS}) | ||||
# If ccache is available, then use it. | # If ccache is available, then use it. | ||||
find_program(CCACHE ccache) | find_program(CCACHE ccache) | ||||
▲ Show 20 Lines • Show All 625 Lines • Show Last 20 Lines |