From f90adef2668ce6219442be898d1c6c8e0ba9b1bb Mon Sep 17 00:00:00 2001 From: Vasily Kulikov Date: Wed, 20 Sep 2023 18:04:36 +0300 Subject: [PATCH] bug cmake: fix mac os build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests: протестировано CI Co-authored-by: pavelbezpravel p.talashchenko@gmail.com Pull Request resolved: https://github.com/userver-framework/userver/pull/377 --- cmake/GrpcTargets.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/GrpcTargets.cmake b/cmake/GrpcTargets.cmake index 103ad4e562f9..2124e5ea7fa5 100644 --- a/cmake/GrpcTargets.cmake +++ b/cmake/GrpcTargets.cmake @@ -14,8 +14,10 @@ else() endif() if(Protobuf_INCLUDE_DIR) set(USERVER_PROTOBUF_IMPORT_DIR "${Protobuf_INCLUDE_DIR}") - else() + elseif(Protobuf_INCLUDE_DIRS) set(USERVER_PROTOBUF_IMPORT_DIR "${Protobuf_INCLUDE_DIRS}") + else() + set(USERVER_PROTOBUF_IMPORT_DIR "${protobuf_INCLUDE_DIRS}") endif() include(SetupGrpc)