From f83845c982cf44e9c72504c2483076002b1b6849 Mon Sep 17 00:00:00 2001 From: Martin Zink Date: Fri, 1 Mar 2024 15:21:07 +0100 Subject: [PATCH] fix win build --- extensions/grafana-loki/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/grafana-loki/CMakeLists.txt b/extensions/grafana-loki/CMakeLists.txt index e66bc033d9..27a738d642 100644 --- a/extensions/grafana-loki/CMakeLists.txt +++ b/extensions/grafana-loki/CMakeLists.txt @@ -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