Skip to content

Commit

Permalink
fix win build
Browse files Browse the repository at this point in the history
  • Loading branch information
martinzink committed Mar 1, 2024
1 parent 529fbbb commit f83845c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extensions/grafana-loki/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ if (ENABLE_GRPC_FOR_LOKI)
${LOKI_PROTOBUF_GENERATED_DIR}/grafana-loki-push.pb.cc
)

set_source_files_properties(${LOKI_PROTOBUF_GENERATED_DIR}/grafana-loki-push.grpc.pb.cc PROPERTIES COMPILE_FLAGS -Wno-error)
set_source_files_properties(${LOKI_PROTOBUF_GENERATED_DIR}/grafana-loki-push.pb.cc PROPERTIES COMPILE_FLAGS -Wno-error)
if (NOT WIN32)
set_source_files_properties(${LOKI_PROTOBUF_GENERATED_DIR}/grafana-loki-push.grpc.pb.cc PROPERTIES COMPILE_FLAGS -Wno-error)
set_source_files_properties(${LOKI_PROTOBUF_GENERATED_DIR}/grafana-loki-push.pb.cc PROPERTIES COMPILE_FLAGS -Wno-error)
endif()
else()
set(SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/PushGrafanaLoki.cpp
Expand Down

0 comments on commit f83845c

Please sign in to comment.