Skip to content

Commit

Permalink
Python Binding: relaxed the requirement of the specific python protob…
Browse files Browse the repository at this point in the history
…uf version
  • Loading branch information
emilbic28 authored Sep 8, 2022
1 parent 313ee14 commit 7127b1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lang/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ list(GET Protobuf_VERSION_components 0 Protobuf_VERSION_major)
list(GET Protobuf_VERSION_components 1 Protobuf_VERSION_minor)
MATH(EXPR Protobuf_Version_minor_inc "${Protobuf_VERSION_minor}+1")

set(Protobuf_required_versions ">=${Protobuf_VERSION_major}.${Protobuf_VERSION_minor}.0,<${Protobuf_VERSION_major}.${Protobuf_Version_minor_inc}")
if (Protobuf_VERSION VERSION_LESS "3.19")
set(Protobuf_required_versions ">=${Protobuf_VERSION},<=3.20")
else()
set(Protobuf_required_versions ">=${Protobuf_VERSION}")
endif()


configure_file(${SETUP_PY_IN} ${SETUP_PY} @ONLY)

Expand Down

0 comments on commit 7127b1d

Please sign in to comment.