]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: set HAVE_LIBZBD before creating "acconfig.h" 37788/head
authorKefu Chai <kchai@redhat.com>
Thu, 29 Oct 2020 03:17:32 +0000 (11:17 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 29 Oct 2020 03:19:40 +0000 (11:19 +0800)
commitb1e133468f36fe7680d4967220ca42478ddf8c7f
tree1266af93f382a1f7e2e7a813aedbfbfb21b6c242
parent98c06b534f1d58dfd680b0ddf488c0e8a0a43185
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>
CMakeLists.txt
src/blk/CMakeLists.txt