From e9127fc49dbe63b6f37ead0e158bdb0b78a6b984 Mon Sep 17 00:00:00 2001 From: Deepika Upadhyay Date: Sat, 5 Feb 2022 00:13:33 +0530 Subject: [PATCH] cmake: thrift requires boost headers, include them as Boost_INCLUDE_DIRS (#1100) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 90d3fb50ba..e49dcf6302 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,7 +243,10 @@ endfunction() if(WITH_JAEGER) find_package(Thrift QUIET) - if(NOT Thrift_FOUND) + if(Thrift_FOUND) + find_package(Boost REQUIRED) + include_directories(${Boost_INCLUDE_DIR}) + else() # Install Thrift and propagate via vcpkg toolchain file if(WIN32 AND (NOT DEFINED CMAKE_TOOLCHAIN_FILE)) install_windows_deps()