Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 21 Lines | |||||
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(ENABLE_WERROR "Promote some compiler warnings to errors" OFF) | option(ENABLE_WERROR "Promote some compiler warnings to errors" OFF) | ||||
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_EXPERIMENTAL "Use jemalloc as an allocation library (experimental)" OFF) | |||||
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 190 Lines • ▼ Show 20 Lines | if(ENABLE_GLIBC_BACK_COMPAT) | ||||
add_linker_flags(-Wl,--wrap=__divmoddi4) | add_linker_flags(-Wl,--wrap=__divmoddi4) | ||||
add_linker_flags(-Wl,--wrap=log2f) | add_linker_flags(-Wl,--wrap=log2f) | ||||
if(NOT HAVE_LARGE_FILE_SUPPORT) | if(NOT HAVE_LARGE_FILE_SUPPORT) | ||||
add_linker_flags(-Wl,--wrap=fcntl -Wl,--wrap=fcntl64) | add_linker_flags(-Wl,--wrap=fcntl -Wl,--wrap=fcntl64) | ||||
endif() | endif() | ||||
endif() | endif() | ||||
if(USE_JEMALLOC_EXPERIMENTAL) | |||||
find_package(Jemalloc REQUIRED) | |||||
link_libraries(Jemalloc::jemalloc) | |||||
endif() | |||||
# Make sure that all the global compiler and linker flags are set BEFORE | # Make sure that all the global compiler and linker flags are set BEFORE | ||||
# including the libraries so they apply as needed. | # including the libraries so they apply as needed. | ||||
# libraries | # libraries | ||||
add_subdirectory(crypto) | add_subdirectory(crypto) | ||||
add_subdirectory(leveldb) | add_subdirectory(leveldb) | ||||
▲ Show 20 Lines • Show All 409 Lines • Show Last 20 Lines |