From 8fb48727f52901cb9fa634b360b1c61737665251 Mon Sep 17 00:00:00 2001 From: sbrandprog Date: Sun, 24 Aug 2025 17:49:35 +0300 Subject: [PATCH] Expose thriftnb cmake target Client: cpp --- build/cmake/ThriftConfig.cmake.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/cmake/ThriftConfig.cmake.in b/build/cmake/ThriftConfig.cmake.in index f52480104c..e550fe2575 100644 --- a/build/cmake/ThriftConfig.cmake.in +++ b/build/cmake/ThriftConfig.cmake.in @@ -51,6 +51,13 @@ if(@Qt5_FOUND@ AND @WITH_QT5@) set(THRIFT_LIBRARIES thriftqt5::thriftqt5) endif() +if(@Libevent_FOUND@ AND @WITH_LIBEVENT@) + if (NOT TARGET thriftnb::thriftnb) + include("${THRIFT_CMAKE_DIR}/thriftnbTargets.cmake") + endif() + set(THRIFT_LIBRARIES thriftnb::thriftnb) +endif() + if ("${THRIFT_LIBRARIES}" STREQUAL "") message(FATAL_ERROR "thrift libraries were not found") endif()