v31.1-roots.1 · Commit 1: [PATCH 01/17] build(roots): establish v31 portability foundation
src/CMakeLists.txt
Before: src/CMakeLists.txt · After: src/CMakeLists.txt
File metadata
index ad18115bbc5f50b67592e3820a6cbc7c2524d38e..728001f12b0a6995b0a46411d3e58368e261a290 100644
Download original patch · Release notes
Diff rows 1–22 of 22. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/CMakeLists.txt
CHANGED
|
@@ -16,15 +16,19 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
| 16 |
# are set, so output locations of subproject tests and libraries are
|
| 17 |
# not overridden.
|
| 18 |
include(../cmake/crc32c.cmake)
|
| 19 |
-
include(../cmake/leveldb.cmake)
|
|
|
|
|
|
|
| 20 |
include(../cmake/minisketch.cmake)
|
| 21 |
add_subdirectory(univalue)
|
| 22 |
if (ENABLE_IPC AND NOT WITH_EXTERNAL_LIBMULTIPROCESS)
|
| 23 |
include(../cmake/libmultiprocess.cmake)
|
| 24 |
add_libmultiprocess(ipc/libmultiprocess)
|
| 25 |
endif()
|
| 26 |
-
include(../cmake/secp256k1.cmake)
|
| 27 |
-
add_secp256k1(secp256k1)
|
|
|
|
|
|
|
| 28 |
|
| 29 |
# Set top-level target output locations.
|
| 30 |
if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
|
|
|
|
| 16 |
# are set, so output locations of subproject tests and libraries are
|
| 17 |
# not overridden.
|
| 18 |
include(../cmake/crc32c.cmake)
|
| 19 |
+
if(NOT WITH_SYSTEM_LEVELDB)
|
| 20 |
+
include(../cmake/leveldb.cmake)
|
| 21 |
+
endif()
|
| 22 |
include(../cmake/minisketch.cmake)
|
| 23 |
add_subdirectory(univalue)
|
| 24 |
if (ENABLE_IPC AND NOT WITH_EXTERNAL_LIBMULTIPROCESS)
|
| 25 |
include(../cmake/libmultiprocess.cmake)
|
| 26 |
add_libmultiprocess(ipc/libmultiprocess)
|
| 27 |
endif()
|
| 28 |
+
if(NOT WITH_SYSTEM_LIBSECP256K1)
|
| 29 |
+
include(../cmake/secp256k1.cmake)
|
| 30 |
+
add_secp256k1(secp256k1)
|
| 31 |
+
endif()
|
| 32 |
|
| 33 |
# Set top-level target output locations.
|
| 34 |
if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
|