Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into 27-support-python-3…
Browse files Browse the repository at this point in the history
….10-through-3.13
  • Loading branch information
aliddell committed Dec 19, 2024
2 parents 295f16c + bdcfbdd commit 78af3e7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
1 change: 0 additions & 1 deletion benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ target_include_directories(${tgt} PRIVATE
${PROJECT_SOURCE_DIR}/src/logger
)
target_link_libraries(${tgt} PRIVATE
acquire-logger
acquire-zarr
nlohmann_json::nlohmann_json
miniocpp::miniocpp
Expand Down
17 changes: 6 additions & 11 deletions src/logger/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

add_library(acquire-logger
add_library(acquire-logger-obj OBJECT
logger.hh
logger.cpp
)

target_include_directories(acquire-logger
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)

set_target_properties(acquire-logger PROPERTIES
set_target_properties(acquire-logger-obj PROPERTIES
POSITION_INDEPENDENT_CODE ON
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>"
)

install(TARGETS acquire-logger
LIBRARY DESTINATION lib
target_include_directories(acquire-logger-obj
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)
2 changes: 1 addition & 1 deletion src/streaming/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ add_library(${tgt}
zarrv3.array.writer.cpp
vectorized.file.writer.hh
vectorized.file.writer.cpp
$<TARGET_OBJECTS:acquire-logger-obj>
)

target_include_directories(${tgt}
Expand All @@ -42,7 +43,6 @@ target_include_directories(${tgt}
)

target_link_libraries(${tgt} PRIVATE
acquire-logger
blosc_static
miniocpp::miniocpp
)
Expand Down
1 change: 0 additions & 1 deletion tests/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ foreach (name ${tests})
${PROJECT_SOURCE_DIR}/src/logger
)
target_link_libraries(${tgt} PRIVATE
acquire-logger
acquire-zarr
nlohmann_json::nlohmann_json
miniocpp::miniocpp
Expand Down
1 change: 0 additions & 1 deletion tests/unit-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ foreach (name ${tests})
${PROJECT_SOURCE_DIR}/src/streaming
)
target_link_libraries(${tgt} PRIVATE
acquire-logger
acquire-zarr
miniocpp::miniocpp
)
Expand Down

0 comments on commit 78af3e7

Please sign in to comment.