summaryrefslogtreecommitdiffstats
path: root/src/compressor
diff options
context:
space:
mode:
authorJames Page <james.page@ubuntu.com>2022-02-08 10:10:36 +0100
committerKefu Chai <tchaikov@gmail.com>2022-02-20 14:39:13 +0100
commit1b3bfcd4fe387709553cedb342b67fc2a358a3f9 (patch)
tree210723bff5cd921df6c1b042c61d79426ab500ce /src/compressor
parentMerge pull request #44608 from liumiaomiaoIntel/qatchange (diff)
downloadceph-1b3bfcd4fe387709553cedb342b67fc2a358a3f9.tar.xz
ceph-1b3bfcd4fe387709553cedb342b67fc2a358a3f9.zip
cmake: add dependency compression->common
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>
Diffstat (limited to 'src/compressor')
-rw-r--r--src/compressor/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compressor/CMakeLists.txt b/src/compressor/CMakeLists.txt
index 9b10fff5330..51dd66bf24a 100644
--- a/src/compressor/CMakeLists.txt
+++ b/src/compressor/CMakeLists.txt
@@ -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