aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/onnx/fix-cxx_standard.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/onnx/fix-cxx_standard.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/onnx/fix-cxx_standard.patch')
-rw-r--r--vcpkg/ports/onnx/fix-cxx_standard.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcpkg/ports/onnx/fix-cxx_standard.patch b/vcpkg/ports/onnx/fix-cxx_standard.patch
new file mode 100644
index 0000000..4f9f106
--- /dev/null
+++ b/vcpkg/ports/onnx/fix-cxx_standard.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 55869f4..e8b20cb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -524,6 +524,7 @@ else()
+ set_target_properties(onnx_proto PROPERTIES VISIBILITY_INLINES_HIDDEN 1)
+ endif()
+ target_compile_definitions(onnx_proto PRIVATE ${ONNX_API_DEFINE})
++target_compile_features(onnx_proto PUBLIC cxx_std_${CMAKE_CXX_STANDARD})
+
+ if(ONNX_USE_LITE_PROTO)
+ if(TARGET protobuf::libprotobuf-lite)