diff options
author | James Page <james.page@ubuntu.com> | 2022-02-08 10:10:36 +0100 |
---|---|---|
committer | Kefu Chai <tchaikov@gmail.com> | 2022-02-20 14:39:13 +0100 |
commit | 1b3bfcd4fe387709553cedb342b67fc2a358a3f9 (patch) | |
tree | 210723bff5cd921df6c1b042c61d79426ab500ce /src/compressor | |
parent | Merge pull request #44608 from liumiaomiaoIntel/qatchange (diff) | |
download | ceph-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.txt | 1 |
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 |