Changeset View
Changeset View
Standalone View
Standalone View
src/config/CMakeLists.txt
# Copyright (c) 2017-2019 The Bitcoin developers | # Copyright (c) 2017-2019 The Bitcoin developers | ||||
# This generates config.h which provides numerous defines | # This generates config.h which provides numerous defines | ||||
# about the state of the plateform we are building on. | # about the state of the plateform we are building on. | ||||
include(CheckIncludeFiles) | include(CheckIncludeFiles) | ||||
include(CheckSymbolExists) | include(CheckSymbolExists) | ||||
include(CheckCXXSymbolExists) | |||||
include(CheckCXXSourceCompiles) | include(CheckCXXSourceCompiles) | ||||
# Version | # Version | ||||
set(CLIENT_VERSION_MAJOR ${bitcoin-abc_VERSION_MAJOR}) | set(CLIENT_VERSION_MAJOR ${bitcoin-abc_VERSION_MAJOR}) | ||||
set(CLIENT_VERSION_MINOR ${bitcoin-abc_VERSION_MINOR}) | set(CLIENT_VERSION_MINOR ${bitcoin-abc_VERSION_MINOR}) | ||||
set(CLIENT_VERSION_REVISION ${bitcoin-abc_VERSION_PATCH}) | set(CLIENT_VERSION_REVISION ${bitcoin-abc_VERSION_PATCH}) | ||||
option(CLIENT_VERSION_IS_RELEASE "Build a release version" OFF) | option(CLIENT_VERSION_IS_RELEASE "Build a release version" OFF) | ||||
▲ Show 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | if(ENABLE_UPNP) | ||||
# defined to 1, otherwise it should be defined to 0. | # defined to 1, otherwise it should be defined to 0. | ||||
set(USE_UPNP ${START_WITH_UPNP} CACHE INTERNAL "UPnP is enabled") | set(USE_UPNP ${START_WITH_UPNP} CACHE INTERNAL "UPnP is enabled") | ||||
endif() | endif() | ||||
if(ENABLE_DBUS_NOTIFICATIONS) | if(ENABLE_DBUS_NOTIFICATIONS) | ||||
set(USE_DBUS 1) | set(USE_DBUS 1) | ||||
endif() | endif() | ||||
# Check if std::system or ::wsystem is available | |||||
check_cxx_symbol_exists(std::system "cstdlib" _HAVE_STD_SYSTEM) | |||||
check_cxx_symbol_exists(::wsystem "" _HAVE_WSYSTEM) | |||||
if(_HAVE_STD_SYSTEM OR _HAVE_WSYSTEM) | |||||
set(HAVE_SYSTEM 1) | |||||
endif() | |||||
# Generate the config | # Generate the config | ||||
configure_file(bitcoin-config.h.cmake.in bitcoin-config.h ESCAPE_QUOTES) | configure_file(bitcoin-config.h.cmake.in bitcoin-config.h ESCAPE_QUOTES) |