From 57e023e5cfa522007e24d87c8e3d82bf7c4a19cd Mon Sep 17 00:00:00 2001
From: Shi Xian <40013335+R1ckShi@users.noreply.github.com>
Date: 星期二, 18 二月 2025 15:15:40 +0800
Subject: [PATCH] Merge pull request #2382 from msgk239/dev_clean

---
 runtime/onnxruntime/third_party/openfst/CMakeLists.txt |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/runtime/onnxruntime/third_party/openfst/CMakeLists.txt b/runtime/onnxruntime/third_party/openfst/CMakeLists.txt
index 2dd9df5..eda6a96 100644
--- a/runtime/onnxruntime/third_party/openfst/CMakeLists.txt
+++ b/runtime/onnxruntime/third_party/openfst/CMakeLists.txt
@@ -48,8 +48,13 @@
 option(HAVE_SPECIAL "Build special" ON)
 
   set(WITH_GFLAGS OFF CACHE BOOL "whether build glog with gflags" FORCE)
-  set(HAVE_BIN ON CACHE BOOL "Build the fst binaries" FORCE)
-  set(HAVE_SCRIPT ON CACHE BOOL "Build the fstscript" FORCE)
+  if (WIN32)
+    set(HAVE_BIN OFF CACHE BOOL "Build the fst binaries" FORCE)
+    set(HAVE_SCRIPT OFF CACHE BOOL "Build the fstscript" FORCE)
+  else()
+    set(HAVE_BIN ON CACHE BOOL "Build the fst binaries" FORCE)
+    set(HAVE_SCRIPT ON CACHE BOOL "Build the fstscript" FORCE)
+  endif (WIN32)
 
   set(HAVE_COMPACT OFF CACHE BOOL "Build compact" FORCE)
   set(HAVE_CONST OFF CACHE BOOL "Build const" FORCE)

--
Gitblit v1.9.1