mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
Merge 1e7cdb04fd
into 66aa6a47bd
This commit is contained in:
commit
d6b6ae10be
1 changed files with 10 additions and 14 deletions
|
@ -97,50 +97,46 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT CMAKE_HOST_APPLE)
|
|||
endif()
|
||||
|
||||
# Set configuration options for the main build system.
|
||||
set(qt_packages @qt_packages@)
|
||||
if("${qt_packages}" STREQUAL "")
|
||||
# The depends/Makefile can generate values with "not-set"
|
||||
# semantics as empty strings or strings containing only spaces.
|
||||
# Therefore, MATCHES must be used rather than STREQUAL.
|
||||
if("@qt_packages@" MATCHES "^[ ]*$")
|
||||
set(BUILD_GUI OFF CACHE BOOL "")
|
||||
else()
|
||||
set(BUILD_GUI ON CACHE BOOL "")
|
||||
endif()
|
||||
|
||||
set(qrencode_packages @qrencode_packages@)
|
||||
if("${qrencode_packages}" STREQUAL "")
|
||||
if("@qrencode_packages@" MATCHES "^[ ]*$")
|
||||
set(WITH_QRENCODE OFF CACHE BOOL "")
|
||||
else()
|
||||
set(WITH_QRENCODE ON CACHE BOOL "")
|
||||
endif()
|
||||
|
||||
set(zmq_packages @zmq_packages@)
|
||||
if("${zmq_packages}" STREQUAL "")
|
||||
if("@zmq_packages@" MATCHES "^[ ]*$")
|
||||
set(WITH_ZMQ OFF CACHE BOOL "")
|
||||
else()
|
||||
set(WITH_ZMQ ON CACHE BOOL "")
|
||||
endif()
|
||||
|
||||
set(wallet_packages @wallet_packages@)
|
||||
if("${wallet_packages}" STREQUAL "")
|
||||
if("@wallet_packages@" MATCHES "^[ ]*$")
|
||||
set(ENABLE_WALLET OFF CACHE BOOL "")
|
||||
else()
|
||||
set(ENABLE_WALLET ON CACHE BOOL "")
|
||||
endif()
|
||||
|
||||
set(bdb_packages @bdb_packages@)
|
||||
if("${wallet_packages}" STREQUAL "" OR "${bdb_packages}" STREQUAL "")
|
||||
if("@wallet_packages@" MATCHES "^[ ]*$" OR "@bdb_packages@" MATCHES "^[ ]*$")
|
||||
set(WITH_BDB OFF CACHE BOOL "")
|
||||
else()
|
||||
set(WITH_BDB ON CACHE BOOL "")
|
||||
endif()
|
||||
|
||||
set(sqlite_packages @sqlite_packages@)
|
||||
if("${wallet_packages}" STREQUAL "" OR "${sqlite_packages}" STREQUAL "")
|
||||
if("@wallet_packages@" MATCHES "^[ ]*$" OR "@sqlite_packages@" MATCHES "^[ ]*$")
|
||||
set(WITH_SQLITE OFF CACHE BOOL "")
|
||||
else()
|
||||
set(WITH_SQLITE ON CACHE BOOL "")
|
||||
endif()
|
||||
|
||||
set(usdt_packages @usdt_packages@)
|
||||
if("${usdt_packages}" STREQUAL "")
|
||||
if("@usdt_packages@" MATCHES "^[ ]*$")
|
||||
set(WITH_USDT OFF CACHE BOOL "")
|
||||
else()
|
||||
set(WITH_USDT ON CACHE BOOL "")
|
||||
|
|
Loading…
Reference in a new issue