]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: add dependency compression->common 44936/head
authorJames Page <james.page@ubuntu.com>
Tue, 8 Feb 2022 09:10:36 +0000 (09:10 +0000)
committerKefu Chai <tchaikov@gmail.com>
Sun, 20 Feb 2022 13:39:13 +0000 (21:39 +0800)
The compression code depends on headers generated during the build
of the common code for Ceph.

Ensure that CMake understands this dependency, avoiding a race
between generation of header files in common and compilation of the
compression module.

Signed-off-by: James Page <james.page@ubuntu.com>
src/compressor/CMakeLists.txt

index 9b10fff53301ce28055f48cdb97de614c1317603..51dd66bf24a7aac75ab4aeb0edfe8af3b15d50b0 100644 (file)
@@ -5,6 +5,7 @@ if (HAVE_QATZIP)
   list(APPEND compressor_srcs QatAccel.cc)
 endif()
 add_library(compressor_objs OBJECT ${compressor_srcs})
+add_dependencies(compressor_objs common-objs)
 if(HAVE_QATZIP AND HAVE_QATDRV)
   target_link_libraries(compressor_objs PRIVATE
                         QatDrv::qat_s