Commit 19b406f
committed
blk/CMakeLists.txt: generate interface library if
If all the libraries which `libblk` wraps (i.e. Bluestore, AIO, SPDK,
ZBD) are disabled, then the build aborts with a linker failure:
```
c++ [...] -o bin/ceph-mon [...] -lblk [...]
mold: fatal: library not found: blk
collect2: error: ld returned 1 exit status
```
This is because `blk` is used (via `os`) but if the `add_library()`
directive is skipped, `cmake` attempts to look up a library with that
name.
Signed-off-by: Max Kellermann <[email protected]>libblk is disabled1 parent 24378a0 commit 19b406f
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
0 commit comments