From d113ca51b44c4dc0575d5b25752f5f59015541e1 Mon Sep 17 00:00:00 2001 From: Abanoub Doss Date: Sun, 26 Jul 2026 15:21:32 -0500 Subject: [PATCH] fix: detect system Thrift in CONFIG mode --- cmake_modules/FindThriftAlt.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake_modules/FindThriftAlt.cmake b/cmake_modules/FindThriftAlt.cmake index 13820998b..73b8fd446 100644 --- a/cmake_modules/FindThriftAlt.cmake +++ b/cmake_modules/FindThriftAlt.cmake @@ -86,9 +86,10 @@ endif() include(FindPackageHandleStandardArgs) if(TARGET thrift::thrift) # CONFIG mode already produced the target; satisfy REQUIRED_VARS with it. + set(ThriftAlt_TARGET thrift::thrift) find_package_handle_standard_args( ThriftAlt - REQUIRED_VARS thrift::thrift + REQUIRED_VARS ThriftAlt_TARGET VERSION_VAR ThriftAlt_VERSION) else() find_package_handle_standard_args(