From 64b0e54222cf6d6269051169dfcef4940f4381b0 Mon Sep 17 00:00:00 2001 From: Konstantin Goncharik <752322+botanegg@users.noreply.github.com> Date: Wed, 3 Jul 2024 00:55:51 +0700 Subject: [PATCH] fix service_template: fix checking existence of third_party/userver in subdirectory fallback mode (#72) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 591b2d8..61dfe19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ if(NOT userver_FOUND) # Fallback to subdirectory usage set(USERVER_FEATURE_GRPC_CHANNELZ OFF CACHE BOOL "" FORCE) set(USERVER_FEATURE_REDIS_HI_MALLOC ON CACHE BOOL "" FORCE) - if (EXISTS third_party/userver) + if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/userver) message(STATUS "Using userver framework from third_party/userver") add_subdirectory(third_party/userver) else()