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(CheckTypeSize) | |||||
include(CheckCXXSymbolExists) | 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}) | ||||
▲ Show 20 Lines • Show All 234 Lines • ▼ Show 20 Lines | |||||
# Check if std::system or ::wsystem is available | # Check if std::system or ::wsystem is available | ||||
check_cxx_symbol_exists(std::system "cstdlib" _HAVE_STD_SYSTEM) | check_cxx_symbol_exists(std::system "cstdlib" _HAVE_STD_SYSTEM) | ||||
check_cxx_symbol_exists(::wsystem "" _HAVE_WSYSTEM) | check_cxx_symbol_exists(::wsystem "" _HAVE_WSYSTEM) | ||||
if(_HAVE_STD_SYSTEM OR _HAVE_WSYSTEM) | if(_HAVE_STD_SYSTEM OR _HAVE_WSYSTEM) | ||||
set(HAVE_SYSTEM 1) | set(HAVE_SYSTEM 1) | ||||
endif() | endif() | ||||
check_type_size(__int128 __INT128) | |||||
# 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) |