diff options
author | Kefu Chai <kchai@redhat.com> | 2020-10-29 04:17:32 +0100 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2020-10-29 04:19:40 +0100 |
commit | b1e133468f36fe7680d4967220ca42478ddf8c7f (patch) | |
tree | 1266af93f382a1f7e2e7a813aedbfbfb21b6c242 /src/blk/CMakeLists.txt | |
parent | rpm: pass -DWITH_ZBD=ON to cmake if zbd is enabled (diff) | |
download | ceph-b1e133468f36fe7680d4967220ca42478ddf8c7f.tar.xz ceph-b1e133468f36fe7680d4967220ca42478ddf8c7f.zip |
cmake: set HAVE_LIBZBD before creating "acconfig.h"
`acconfig.h` is generated using
configure_file(
${CMAKE_SOURCE_DIR}/src/include/config-h.in.cmake
${CMAKE_BINARY_DIR}/include/acconfig.h
)
in `config-h.in.cmake`, the cmake variable of `HAVE_LIBZBD` is checked.
so we need to ensure that this variable is visible from this
`configure_file()` statement.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/blk/CMakeLists.txt')
-rw-r--r-- | src/blk/CMakeLists.txt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/blk/CMakeLists.txt b/src/blk/CMakeLists.txt index bbbe62ff133..63be2ecfcf6 100644 --- a/src/blk/CMakeLists.txt +++ b/src/blk/CMakeLists.txt @@ -21,8 +21,6 @@ if(WITH_SPDK) endif() if(WITH_ZBD) - find_package(zbd REQUIRED) - set(HAVE_LIBZBD ${ZBD_FOUND}) list(APPEND libblk_srcs zoned/HMSMRDevice.cc) endif() |