Skip to content

Commit

Permalink
"updated conan dependencies; updates #255"
Browse files Browse the repository at this point in the history
  • Loading branch information
martukas committed Mar 18, 2022
1 parent bd107d0 commit d487bb1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions conanfile.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[requires]
cli11/2.1.1
date/2.4.1
eigen/3.3.9
cli11/2.1.2
date/3.0.1
eigen/3.4.0
gtest/1.10.0
h5cpp/0.4.1@ess-dmsc/testing
nlohmann_json/3.9.1
librdkafka/1.6.0
fmt/8.1.1
librdkafka/1.8.2
nlohmann_json/3.10.5
spdlog/1.9.2
h5cpp/0.4.1@ess-dmsc/stable
logical-geometry/705ea61@ess-dmsc/stable
qplot/6e192ab@ess-dmsc/testing
Qt-Color-Widgets/9f4e052@ess-dmsc/testing
qplot/6e192ab@ess-dmsc/stable
Qt-Color-Widgets/9f4e052@ess-dmsc/stable
streaming-data-types/6a41aee@ess-dmsc/stable
spdlog/1.3.1@bincrafters/stable
fmt/5.3.0@bincrafters/stable

[generators]
cmake
Expand Down
2 changes: 1 addition & 1 deletion source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ include(BuildInfo)

find_package(date REQUIRED)
find_package(fmt REQUIRED)
find_package(spdlog REQUIRED)
find_package(h5cpp 0.4.0 REQUIRED)
find_package(Threads REQUIRED)
add_definitions("-DGRAYLOG")

add_subdirectory(core)
add_subdirectory(consumers)
Expand Down
2 changes: 1 addition & 1 deletion source/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ target_include_directories(
target_link_libraries(
${this_target}
PUBLIC ${COVERAGE_LIBRARIES}
PUBLIC ${GraylogLogger_STATIC_LIBRARIES}
PUBLIC h5cpp::h5cpp
PUBLIC fmt::fmt
PUBLIC spdlog::spdlog
PUBLIC ${DATE_LIBRARIES}
PRIVATE Threads::Threads
)
Expand Down
4 changes: 2 additions & 2 deletions source/core/util/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ template<typename Mutex>
class ostream_sink final : public spdlog::sinks::base_sink<Mutex>
{
public:
ostream_sink(std::ostream* gui_stream)
explicit ostream_sink(std::ostream* gui_stream)
: outStream(gui_stream)
{}

protected:
void sink_it_(const spdlog::details::log_msg& msg) override
{
fmt::memory_buffer formatted;
spdlog::memory_buf_t formatted;
spdlog::sinks::base_sink<Mutex>::formatter_->format(msg, formatted);
(*outStream) << fmt::to_string(formatted);
}
Expand Down

0 comments on commit d487bb1

Please sign in to comment.