From 1b3bfcd4fe387709553cedb342b67fc2a358a3f9 Mon Sep 17 00:00:00 2001 From: James Page Date: Tue, 8 Feb 2022 09:10:36 +0000 Subject: [PATCH] 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 --- src/compressor/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5