Skip to content

Commit

Permalink
maa-core: remove patch
Browse files Browse the repository at this point in the history
Closes #194.

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
wangl-cc authored and github-actions[bot] committed Jul 12, 2024
1 parent 17bce58 commit 84139d2
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Formula/maa-core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ class MaaCore < Formula

fails_with gcc: "11"

# Force find onnxruntime in CONFIG mode
patch :DATA

def install
cmake_args = %W[
-DBUILD_SHARED_LIBS=ON
Expand All @@ -72,18 +69,3 @@ def install
(share/"maa").install "resource" if build.with? "resource"
end
end

__END__
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 240a7b212..81748becb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,7 +91,7 @@ if(USE_MAADEPS)
find_package(MaaDerpLearning REQUIRED)
list(APPEND maa_libs MaaDerpLearning)
else()
- find_package(onnxruntime REQUIRED) # provided by onnxruntime>=1.16
+ find_package(onnxruntime CONFIG REQUIRED) # provided by onnxruntime>=1.16
list(APPEND maa_libs onnxruntime::onnxruntime)
if(DEFINED fastdeploy_SOURCE_DIR)
# TODO: FetchContent github.com/MaaAssistantArknights/FastDeploy

0 comments on commit 84139d2

Please sign in to comment.