Changeset View
Changeset View
Standalone View
Standalone View
src/config/CMakeLists.txt
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | check_cxx_source_compiles(" | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
int main() { | int main() { | ||||
static const int name[2] = {CTL_KERN, KERN_ARND}; | static const int name[2] = {CTL_KERN, KERN_ARND}; | ||||
sysctl(name, 2, nullptr, nullptr, nullptr, 0); | sysctl(name, 2, nullptr, nullptr, nullptr, 0); | ||||
return 0; | return 0; | ||||
} | } | ||||
" HAVE_SYSCTL_ARND) | " HAVE_SYSCTL_ARND) | ||||
check_cxx_source_compiles(" | |||||
#include <cstdint> | |||||
#include <type_traits> | |||||
int main() { | |||||
static_assert(std::is_same<int8_t, char>::value, \"\"); | |||||
return 0; | |||||
} | |||||
" CHAR_EQUALS_INT8) | |||||
# OpenSSL functionality | # OpenSSL functionality | ||||
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_CRYPTO_INCLUDES}) | set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_CRYPTO_INCLUDES}) | ||||
set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) | set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) | ||||
check_symbol_exists(EVP_MD_CTX_new "openssl/evp.h" HAVE_DECL_EVP_MD_CTX_NEW) | check_symbol_exists(EVP_MD_CTX_new "openssl/evp.h" HAVE_DECL_EVP_MD_CTX_NEW) | ||||
# Activate wallet | # Activate wallet | ||||
set(ENABLE_WALLET ${BUILD_BITCOIN_WALLET}) | set(ENABLE_WALLET ${BUILD_BITCOIN_WALLET}) | ||||
Show All 23 Lines |