Skip to content

Commit 62da191

Browse files
Merge pull request ceph#60305 from MaxKellermann/blk_interface
blk/CMakeLists.txt: generate interface library if `libblk` is disabled Reviewed-by: Kefu Chai <[email protected]>
2 parents e386a76 + 19b406f commit 62da191

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/blk/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ endif()
2323
if(libblk_srcs)
2424
add_library(blk STATIC ${libblk_srcs})
2525
target_include_directories(blk PRIVATE "./")
26+
else()
27+
add_library(blk INTERFACE)
2628
endif()
2729

2830
if(HAVE_LIBAIO)

0 commit comments

Comments
 (0)