From 59d212722bb99e62dd78ba7405bfc1123bec16f7 Mon Sep 17 00:00:00 2001 From: Deepika Upadhyay Date: Wed, 27 Oct 2021 16:03:32 +0530 Subject: [PATCH] cmake: thrift requires boost headers, include them as Boost_INCLUDE_DIRS Signed-off-by: Deepika Upadhyay --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2b0dcb608..f5d5d2f126 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,7 +239,10 @@ endfunction() if(WITH_JAEGER) find_package(Thrift QUIET) - if(NOT Thrift_FOUND) + if(Thrift_FOUND) + find_package(Boost REQUIRED) + include_directories(${Boost_INCLUDE_DIRS}) + else() # Install Thrift and propagate via vcpkg toolchain file if(WIN32 AND (NOT DEFINED CMAKE_TOOLCHAIN_FILE)) install_windows_deps()