From: James Page Date: Tue, 8 Feb 2022 09:10:36 +0000 (+0000) Subject: cmake: add dependency compression->common X-Git-Tag: v18.0.0~1364^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b3bfcd4fe387709553cedb342b67fc2a358a3f9;p=ceph.git 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 --- diff --git a/src/compressor/CMakeLists.txt b/src/compressor/CMakeLists.txt index 9b10fff53301..51dd66bf24a7 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