From 1a6242fd4fb9e3b3827908520c876ee541b60af5 Mon Sep 17 00:00:00 2001
From: lyblsgo <lyblsgo@163.com>
Date: 星期五, 14 四月 2023 13:08:33 +0800
Subject: [PATCH] support arbitrary sampling rate

---
 funasr/runtime/onnxruntime/CMakeLists.txt |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/funasr/runtime/onnxruntime/CMakeLists.txt b/funasr/runtime/onnxruntime/CMakeLists.txt
index 4ffe0f3..6feef92 100644
--- a/funasr/runtime/onnxruntime/CMakeLists.txt
+++ b/funasr/runtime/onnxruntime/CMakeLists.txt
@@ -2,24 +2,27 @@
 
 project(FunASRonnx)
 
-set(CMAKE_CXX_STANDARD 11)
+# set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD 14 CACHE STRING "The C++ version to be used.")
 set(CMAKE_POSITION_INDEPENDENT_CODE ON)
 
+include(TestBigEndian)
+test_big_endian(BIG_ENDIAN)
+if(BIG_ENDIAN)
+    message("Big endian system")
+else()
+    message("Little endian system")
+endif()
+
 # for onnxruntime
-
 IF(WIN32)
-
-
 	if(CMAKE_CL_64)
 		link_directories(${ONNXRUNTIME_DIR}\\lib)
 	else()
 		add_definitions(-D_WIN_X86)
 	endif()
 ELSE()
-
-
-link_directories(${ONNXRUNTIME_DIR}/lib)
-
+    link_directories(${ONNXRUNTIME_DIR}/lib)
 endif()
 
 add_subdirectory("./third_party/yaml-cpp")

--
Gitblit v1.9.1