Changeset View
Changeset View
Standalone View
Standalone View
src/config/CMakeLists.txt
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | |||||
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}) | ||||
# Activate ZeroMQ | # Activate ZeroMQ | ||||
set(ENABLE_ZMQ ${BUILD_BITCOIN_ZMQ}) | set(ENABLE_ZMQ ${BUILD_BITCOIN_ZMQ}) | ||||
# Try to find miniupnpc | |||||
if(ENABLE_UPNP) | |||||
find_package(MiniUPnPc REQUIRED) | |||||
# The expected behavior is as follow: | |||||
# - If UPnP is enabled USE_UPNP must be defined | |||||
# - If UPnP should be the default port map method, USE_UPNP should be | |||||
# defined to 1, otherwise it should be defined to 0. | |||||
set(USE_UPNP ${START_WITH_UPNP} CACHE INTERNAL "UPnP is enabled") | |||||
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) |