Skip to content

Commit 840e494

Browse files
committed
fixup! build: Generate share/toolchain.cmake in depends
Add docstrings for options when cross-compiling.
1 parent 5e65a38 commit 840e494

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

depends/toolchain.cmake.in

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,42 +107,45 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT CMAKE_HOST_APPLE)
107107
set(CMAKE_FRAMEWORK_PATH "@OSX_SDK@/System/Library/Frameworks")
108108
endif()
109109

110+
# Ensure that the docstrings in the following `set(... CACHE ...)`
111+
# commands match those in the root CMakeLists.txt file.
112+
110113
if(NOT WITH_GUI AND "@no_qt@" STREQUAL "1")
111-
set(WITH_GUI OFF CACHE STRING "")
114+
set(WITH_GUI OFF CACHE STRING "Build GUI.")
112115
endif()
113116

114117
if(NOT WITH_QRENCODE AND "@no_qr@" STREQUAL "1")
115-
set(WITH_QRENCODE OFF CACHE STRING "")
118+
set(WITH_QRENCODE OFF CACHE STRING "Enable QR code support.")
116119
endif()
117120

118121
if(NOT WITH_ZMQ AND "@no_zmq@" STREQUAL "1")
119-
set(WITH_ZMQ OFF CACHE STRING "")
122+
set(WITH_ZMQ OFF CACHE STRING "Enable ZMQ notifications.")
120123
endif()
121124

122125
if(NOT ENABLE_WALLET AND "@no_wallet@" STREQUAL "1")
123-
set(ENABLE_WALLET OFF CACHE BOOL "")
126+
set(ENABLE_WALLET OFF CACHE BOOL "Enable wallet.")
124127
endif()
125128

126129
if(NOT WITH_BDB AND "@no_bdb@" STREQUAL "1")
127-
set(WITH_BDB OFF CACHE STRING "")
130+
set(WITH_BDB OFF CACHE STRING "Enable Berkeley DB (BDB) wallet support.")
128131
endif()
129132

130133
if(NOT WITH_SQLITE AND "@no_sqlite@" STREQUAL "1")
131-
set(WITH_SQLITE OFF CACHE STRING "")
134+
set(WITH_SQLITE OFF CACHE STRING "Enable SQLite wallet support.")
132135
endif()
133136

134137
if(NOT WITH_MINIUPNPC AND "@no_upnp@" STREQUAL "1")
135-
set(WITH_MINIUPNPC OFF CACHE STRING "")
138+
set(WITH_MINIUPNPC OFF CACHE STRING "Enable UPnP.")
136139
endif()
137140

138141
if(NOT WITH_NATPMP AND "@no_natpmp@" STREQUAL "1")
139-
set(WITH_NATPMP OFF CACHE STRING "")
142+
set(WITH_NATPMP OFF CACHE STRING "Enable NAT-PMP.")
140143
endif()
141144

142145
if(NOT WITH_USDT AND "@no_usdt@" STREQUAL "1")
143-
set(WITH_USDT OFF CACHE STRING "")
146+
set(WITH_USDT OFF CACHE STRING "Enable tracepoints for Userspace, Statically Defined Tracing.")
144147
endif()
145148

146149
if(NOT HARDENING AND "@no_harden@" STREQUAL "1")
147-
set(HARDENING OFF CACHE STRING "")
150+
set(HARDENING OFF CACHE STRING "Attempt to harden the resulting executables.")
148151
endif()

0 commit comments

Comments
 (0)