build: Fix ENABLE_WALLET option

The removed commands were left over from the transition from
autodetection to explicit options. These commands prevented the
`-DENABLE_WALLET=OFF` option from being work properly when building with
depends.
This commit is contained in:
Hennadii Stepanov 2024-09-10 22:13:09 +01:00
parent c66c68345e
commit 0037d53d1a
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -103,14 +103,12 @@ if(WITH_SQLITE)
find_package(SQLite3 3.7.17 REQUIRED) find_package(SQLite3 3.7.17 REQUIRED)
endif() endif()
set(USE_SQLITE ON) set(USE_SQLITE ON)
set(ENABLE_WALLET ON)
endif() endif()
option(WITH_BDB "Enable Berkeley DB (BDB) wallet support." OFF) option(WITH_BDB "Enable Berkeley DB (BDB) wallet support." OFF)
cmake_dependent_option(WARN_INCOMPATIBLE_BDB "Warn when using a Berkeley DB (BDB) version other than 4.8." ON "WITH_BDB" OFF) cmake_dependent_option(WARN_INCOMPATIBLE_BDB "Warn when using a Berkeley DB (BDB) version other than 4.8." ON "WITH_BDB" OFF)
if(WITH_BDB) if(WITH_BDB)
find_package(BerkeleyDB 4.8 MODULE REQUIRED) find_package(BerkeleyDB 4.8 MODULE REQUIRED)
set(USE_BDB ON) set(USE_BDB ON)
set(ENABLE_WALLET ON)
if(NOT BerkeleyDB_VERSION VERSION_EQUAL 4.8) if(NOT BerkeleyDB_VERSION VERSION_EQUAL 4.8)
message(WARNING "Found Berkeley DB (BDB) other than 4.8.\n" message(WARNING "Found Berkeley DB (BDB) other than 4.8.\n"
"BDB (legacy) wallets opened by this build will not be portable!" "BDB (legacy) wallets opened by this build will not be portable!"