Changeset View
Changeset View
Standalone View
Standalone View
src/qt/CMakeLists.txt
Show First 20 Lines • Show All 246 Lines • ▼ Show 20 Lines | if(ENABLE_BIP70) | ||||
target_link_libraries(bitcoin-qt-protobuf ${Protobuf_LIBRARIES}) | target_link_libraries(bitcoin-qt-protobuf ${Protobuf_LIBRARIES}) | ||||
# Don't run clang-tidy on generated files | # Don't run clang-tidy on generated files | ||||
if(ENABLE_CLANG_TIDY) | if(ENABLE_CLANG_TIDY) | ||||
include(ClangTidy) | include(ClangTidy) | ||||
target_disable_clang_tidy(bitcoin-qt-protobuf) | target_disable_clang_tidy(bitcoin-qt-protobuf) | ||||
endif() | endif() | ||||
# Message::ByteSize() is deprecated and replaced by ByteSizeLong() since | |||||
# protobuf 3.1. | |||||
if(Protobuf_VERSION GREATER_EQUAL "3.1.0") | |||||
target_compile_definitions(bitcoin-qt-base PRIVATE USE_PROTOBUF_MESSAGE_BYTESIZELONG) | |||||
endif() | |||||
# OpenSSL functionality | # OpenSSL functionality | ||||
include(BrewHelper) | include(BrewHelper) | ||||
find_brew_prefix(OPENSSL_ROOT_DIR openssl) | find_brew_prefix(OPENSSL_ROOT_DIR openssl) | ||||
find_package(OpenSSL REQUIRED) | find_package(OpenSSL REQUIRED) | ||||
include(CheckSymbolExists) | include(CheckSymbolExists) | ||||
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) | set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) | ||||
set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) | set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) | ||||
▲ Show 20 Lines • Show All 358 Lines • Show Last 20 Lines |