|
|
|
@ -74,8 +74,8 @@ IF(PYTHONINTERP_FOUND)
|
|
|
|
|
find_python_module(wheel REQUIRED)
|
|
|
|
|
find_python_module(google.protobuf REQUIRED)
|
|
|
|
|
FIND_PACKAGE(NumPy REQUIRED)
|
|
|
|
|
IF(${PY_GOOGLE.PROTOBUF_VERSION} AND ${PY_GOOGLE.PROTOBUF_VERSION} VERSION_LESS "3.6.1")
|
|
|
|
|
MESSAGE(FATAL_ERROR "Found Python Protobuf ${PY_GOOGLE.PROTOBUF_VERSION} < 3.6.1, "
|
|
|
|
|
IF(${PY_GOOGLE.PROTOBUF_VERSION} AND ${PY_GOOGLE.PROTOBUF_VERSION} VERSION_LESS "3.0.0")
|
|
|
|
|
MESSAGE(FATAL_ERROR "Found Python Protobuf ${PY_GOOGLE.PROTOBUF_VERSION} < 3.0.0, "
|
|
|
|
|
"please use pip to upgrade protobuf. pip install -U protobuf")
|
|
|
|
|
ENDIF()
|
|
|
|
|
ENDIF(PYTHONINTERP_FOUND)
|
|
|
|
|