Skip to content

Commit

Permalink
onnxruntime: fix macOS CXX standard
Browse files Browse the repository at this point in the history
  • Loading branch information
hguandl authored and dantmnf committed Aug 17, 2024
1 parent f65d119 commit 9fbe591
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions vcpkg-overlay/ports/maa-onnxruntime/0000-system-lib-fix.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 8edbb6ad6..9524cb858 100644
index 8edbb6ad6..f0016676c 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -1494,7 +1494,7 @@ if (onnxruntime_USE_DML)
@@ -39,12 +39,7 @@ include(CMakeDependentOption)
include(FetchContent)
include(CheckFunctionExists)

-# TODO: update this once all system adapt c++20
-if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
-set(CMAKE_CXX_STANDARD 20)
-else()
set(CMAKE_CXX_STANDARD 17)
-endif()

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# NOTE: POSITION INDEPENDENT CODE hurts performance, and it only make sense on POSIX systems
@@ -1494,7 +1489,7 @@ if (onnxruntime_USE_DML)
message(FATAL_ERROR "The DirectML execution provider is only supported when building for Windows.")
endif()

Expand Down

0 comments on commit 9fbe591

Please sign in to comment.