vcpkg/ports/arrow/thrift.patch
jim wang b81b6e497a
[arrow] update to 11.0.0 (#30511)
Co-authored-by: Jim Wang (Beyondsoft Corporation) <v-wangjim@microsoft.com>
2023-04-11 23:18:19 -07:00

23 lines
752 B
Diff

diff --git a/cpp/cmake_modules/FindThriftAlt.cmake b/cpp/cmake_modules/FindThriftAlt.cmake
index f3e4902..65ceac8 100644
--- a/cpp/cmake_modules/FindThriftAlt.cmake
+++ b/cpp/cmake_modules/FindThriftAlt.cmake
@@ -45,7 +45,7 @@ endif()
# * https://github.com/apache/thrift/pull/2725
# * https://github.com/apache/thrift/pull/2726
# * https://github.com/conda-forge/thrift-cpp-feedstock/issues/68
-if(NOT WIN32)
+
set(find_package_args "")
if(ThriftAlt_FIND_VERSION)
list(APPEND find_package_args ${ThriftAlt_FIND_VERSION})
@@ -61,7 +61,7 @@ if(NOT WIN32)
"${THRIFT_COMPILER}")
return()
endif()
-endif()
+
function(extract_thrift_version)
if(ThriftAlt_INCLUDE_DIR)