Skip to content

Commit

Permalink
Metrics is an object.
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Feb 7, 2024
1 parent a9d7d08 commit 16e9821
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ list(APPEND CORE_DEPS
sisl_options
prometheus-cpp::prometheus-cpp
userspace-rcu::userspace-rcu
folly::folly
)

if(${breakpad_FOUND})
Expand All @@ -48,18 +49,14 @@ add_subdirectory(metrics)
add_subdirectory(utility)
add_subdirectory(wisr)

list(APPEND CORE_LIBS
add_library(sisl_core
$<TARGET_OBJECTS:sisl_buffer>
$<TARGET_OBJECTS:sisl_metrics>
)
list(APPEND CORE_DEPS
folly::folly
breakpad::breakpad
target_link_libraries(sisl_core PUBLIC
${CORE_DEPS}
)

add_library(sisl_core ${CORE_LIBS})
target_link_libraries(sisl_core PUBLIC sisl_metrics ${CORE_DEPS})

# Extensions
add_subdirectory(cache)
add_subdirectory(file_watcher)
Expand Down

0 comments on commit 16e9821

Please sign in to comment.