Changeset View
Changeset View
Standalone View
Standalone View
src/config/CMakeLists.txt
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | check_cxx_source_compiles(" | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <type_traits> | #include <type_traits> | ||||
int main() { | int main() { | ||||
static_assert(std::is_same<int8_t, char>::value, \"\"); | static_assert(std::is_same<int8_t, char>::value, \"\"); | ||||
return 0; | return 0; | ||||
} | } | ||||
" CHAR_EQUALS_INT8) | " CHAR_EQUALS_INT8) | ||||
check_cxx_source_compiles(" | |||||
__attribute__((visibility(\"default\"))) int main() { | |||||
return 0; | |||||
} | |||||
" HAVE_FUNC_ATTRIBUTE_VISIBILITY) | |||||
check_cxx_source_compiles(" | |||||
__declspec(dllexport) int main() { | |||||
return 0; | |||||
} | |||||
" HAVE_FUNC_ATTRIBUTE_DLLEXPORT) | |||||
# 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 |