Skip to content

Commit

Permalink
cmake: thrift requires boost headers, include them as Boost_INCLUDE_DIRS
Browse files Browse the repository at this point in the history
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
  • Loading branch information
Deepika Upadhyay committed Dec 2, 2021
1 parent 6b9ed3d commit 59d2127
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 59d2127

Please sign in to comment.