Commit 81c6526
committed
cmake: add ONLY_CAPNP target_capnp_sources option
Make `target_capnp_sources` function take `ONLY_CAPNP` option to only add cap'n
proto-generated files to the target library and not add
libmultiprocess-generated ones.
This is needed in bitcoin/bitcoin#10102 to support
building with ENABLE_IPC=ON and ENABLE_WALLET=OFF because libmultiprocess-generated
wallet files `wallet.capnp.proxy*.c++` can't be built without causing link
errors, while the `wallet.capnp.c++` file is still necessary to build because
it is referenced by `init.capnp` and `node.capnp` there.1 parent a4f9296 commit 81c6526
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 88 | | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
0 commit comments