Date: Thu, 14 Dec 2023 17:03:40 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b4f7ce877308 - main - misc/onnx: Fix build with protobuf 22+ Message-ID: <202312141703.3BEH3eNX017250@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b4f7ce8773083a30b43cb4ca30ca7c36af5ebc39 commit b4f7ce8773083a30b43cb4ca30ca7c36af5ebc39 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-12-14 16:22:44 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-12-14 17:03:07 +0000 misc/onnx: Fix build with protobuf 22+ --- misc/onnx/Makefile | 2 +- misc/onnx/files/patch-CMakeLists.txt | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/misc/onnx/Makefile b/misc/onnx/Makefile index 6873cb6bb9e1..49191583bbe9 100644 --- a/misc/onnx/Makefile +++ b/misc/onnx/Makefile @@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE #BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libprotobuf.so:devel/protobuf -USES= cmake:testing compiler:c++11-lang python:build +USES= cmake:testing compiler:c++17-lang python:build USE_GITHUB= yes diff --git a/misc/onnx/files/patch-CMakeLists.txt b/misc/onnx/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..fafb0e60da96 --- /dev/null +++ b/misc/onnx/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2023-08-24 22:20:34 UTC ++++ CMakeLists.txt +@@ -58,7 +58,7 @@ endif() + # Required to use /std:c++17 or higher on Windows + # For other platforms, set C++11 as standard for the whole project + if(NOT MSVC) +- set(CMAKE_CXX_STANDARD 11) ++ set(CMAKE_CXX_STANDARD 17) + else() + string(APPEND CMAKE_CXX_FLAGS " /std:c++17") + endif()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312141703.3BEH3eNX017250>