Skip to content

Commit a85552c

Browse files
authored
Merge pull request ceph#58414 from cbodley/wip-cmake-object-library-legacy-headers
cmake: more object libraries depend on legacy-option-headers Reviewed-by: Kefu Chai <[email protected]>
2 parents fdfd20f + c46a177 commit a85552c

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

src/compressor/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if(HAVE_QATZIP AND HAVE_QAT)
88
QAT::qat
99
QAT::usdm
1010
QAT::zip
11+
legacy-option-headers
1112
)
1213
endif()
1314

src/crush/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ set(crush_srcs
99
CrushLocation.cc)
1010

1111
add_library(crush_objs OBJECT ${crush_srcs})
12+
target_link_libraries(crush_objs PUBLIC legacy-option-headers)

src/erasure-code/jerasure/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set(jerasure_utils_src
55
ErasureCodeJerasure.cc)
66

77
add_library(jerasure_utils OBJECT ${jerasure_utils_src})
8+
target_link_libraries(jerasure_utils legacy-option-headers)
89

910
# Set the CFLAGS correctly for gf-complete based on SIMD compiler support
1011
set(GF_COMPILE_FLAGS)

src/mgr/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
add_library(mgr_cap_obj OBJECT
22
MgrCap.cc)
3+
target_link_libraries(mgr_cap_obj legacy-option-headers)
34

45
if(WITH_MGR)
56
set(mgr_srcs

src/test/objectstore/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ install(TARGETS ceph_perf_objectstore
66

77
add_library(store_test_fixture OBJECT store_test_fixture.cc)
88
target_include_directories(store_test_fixture PRIVATE
9-
$<TARGET_PROPERTY:GTest::GTest,INTERFACE_INCLUDE_DIRECTORIES>)
9+
$<TARGET_PROPERTY:GTest::GTest,INTERFACE_INCLUDE_DIRECTORIES>
10+
legacy-option-headers)
1011

1112
add_executable(ceph_test_objectstore
1213
store_test.cc
@@ -140,11 +141,9 @@ if(WITH_BLUESTORE)
140141
endif()
141142

142143
# fragmentation simulator
143-
add_library(ObjectStoreImitator OBJECT ObjectStoreImitator.cc)
144-
145144
add_executable(ceph_test_fragmentation_sim
146145
Fragmentation_simulator.cc
147-
$<TARGET_OBJECTS:ObjectStoreImitator>)
146+
ObjectStoreImitator.cc)
148147
add_ceph_unittest(ceph_test_fragmentation_sim)
149148
target_link_libraries(ceph_test_fragmentation_sim os global)
150149

0 commit comments

Comments
 (0)