summarylogtreecommitdiffstats
path: root/relax-protobuf-version.patch
blob: 48fee1fbbc5faea90e0d1ff62ead90dd54823033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -ura src.orig/CMakeLists.txt src.new/CMakeLists.txt
--- src.orig/CMakeLists.txt	2026-04-16 19:37:06.833665110 +0800
+++ src.new/CMakeLists.txt	2026-04-16 19:45:37.327516043 +0800
@@ -215,13 +215,9 @@
 )
 
 if(PROTOBUF_CHECK EQUAL 0)
-    if(PROTOBUF_VERSION VERSION_LESS "3.20.0" OR PROTOBUF_VERSION VERSION_GREATER_EQUAL "4.0.0")
-        message(FATAL_ERROR "Python protobuf ${PROTOBUF_VERSION} found, but version (>=3.20, <4.0) is required")
-    else()
-        message(STATUS "Python protobuf ${PROTOBUF_VERSION} found (>=3.20, <4.0)")
-    endif()
+	message(STATUS "Python protobuf ${PROTOBUF_VERSION} found")
 else()
-    message(FATAL_ERROR "Python protobuf not found. Install version (>=3.20, <4.0)")
+	message(FATAL_ERROR "Python protobuf not found")
 endif()