v30.3-roots.1 · Commit 1: [PATCH 01/68] build: adapt Roots platform support to Core 30.3
src/CMakeLists.txt
Before: src/CMakeLists.txt · After: src/CMakeLists.txt
File metadata
index f9934bb59060652d49eddabfab955a0c254daeac..1f9005a5ac1da90203582ff46c9ee318ef945d62 100644
Download original patch · Release notes
Diff rows 1–37 of 37. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/CMakeLists.txt
CHANGED
|
@@ -15,16 +15,21 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
15
15
|
# These need to be included before CMAKE_*_OUTPUT_DIRECTORY variables
|
|
16
16
|
# are set, so output locations of subproject tests and libraries are
|
|
17
17
|
# not overridden.
|
|
18
|
+
if(NOT WITH_SYSTEM_LEVELDB)
|
|
18
19
|
include(../cmake/crc32c.cmake)
|
|
19
20
|
include(../cmake/leveldb.cmake)
|
|
21
|
+
endif() # WITH_SYSTEM_LEVELDB
|
|
20
22
|
include(../cmake/minisketch.cmake)
|
|
23
|
+
|
|
21
24
|
add_subdirectory(univalue)
|
|
22
25
|
if (ENABLE_IPC AND NOT WITH_EXTERNAL_LIBMULTIPROCESS)
|
|
23
26
|
include(../cmake/libmultiprocess.cmake)
|
|
24
27
|
add_libmultiprocess(ipc/libmultiprocess)
|
|
25
28
|
endif()
|
|
26
|
-
include(../cmake/secp256k1.cmake)
|
|
27
|
-
add_secp256k1(secp256k1)
|
|
29
|
+
if(NOT WITH_SYSTEM_LIBSECP256K1)
|
|
30
|
+
include(../cmake/secp256k1.cmake)
|
|
31
|
+
add_secp256k1(secp256k1)
|
|
32
|
+
endif()
|
|
28
33
|
|
|
29
34
|
# Set top-level target output locations.
|
|
30
35
|
if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
|
|
@@ -167,6 +172,7 @@ if(ENABLE_WALLET)
|
|
|
167
172
|
bitcoin_wallet
|
|
168
173
|
bitcoin_common
|
|
169
174
|
bitcoin_util
|
|
175
|
+
univalue
|
|
170
176
|
Boost::headers
|
|
171
177
|
)
|
|
172
178
|
install_binary_component(bitcoin-wallet HAS_MANPAGE)
|
|
@@ -284,6 +290,7 @@ target_link_libraries(bitcoin_node
|
|
|
284
290
|
$<TARGET_NAME_IF_EXISTS:libevent::core>
|
|
285
291
|
$<TARGET_NAME_IF_EXISTS:libevent::extra>
|
|
286
292
|
$<TARGET_NAME_IF_EXISTS:libevent::pthreads>
|
|
293
|
+
$<TARGET_NAME_IF_EXISTS:MiniUPnPc::MiniUPnPc>
|
|
287
294
|
$<TARGET_NAME_IF_EXISTS:USDT::headers>
|
|
288
295
|
)
|
|
289
296
|
|