提交 668a1b8b 编写于 作者: L Liu Yiqun

Correct the definition of PROTOBUF_VERSION.

上级 1dafbaba
...@@ -75,6 +75,7 @@ FUNCTION(build_protobuf TARGET_NAME BUILD_FOR_HOST) ...@@ -75,6 +75,7 @@ FUNCTION(build_protobuf TARGET_NAME BUILD_FOR_HOST)
LIST(APPEND external_project_dependencies ${TARGET_NAME} PARENT_SCOPE) LIST(APPEND external_project_dependencies ${TARGET_NAME} PARENT_SCOPE)
ENDFUNCTION() ENDFUNCTION()
SET(PROTOBUF_VERSION 3.1)
IF(NOT CMAKE_CROSSCOMPILING) IF(NOT CMAKE_CROSSCOMPILING)
FIND_PACKAGE(Protobuf ${PROTOBUF_VERSION}) FIND_PACKAGE(Protobuf ${PROTOBUF_VERSION})
...@@ -91,7 +92,6 @@ ELSE() ...@@ -91,7 +92,6 @@ ELSE()
CACHE FILEPATH "protobuf executable." FORCE) CACHE FILEPATH "protobuf executable." FORCE)
ENDIF() ENDIF()
SET(PROTOBUF_VERSION 3.1)
IF(NOT PROTOBUF_FOUND) IF(NOT PROTOBUF_FOUND)
build_protobuf(protobuf FALSE) build_protobuf(protobuf FALSE)
SET(PROTOBUF_INCLUDE_DIR ${protobuf_INCLUDE_DIR} SET(PROTOBUF_INCLUDE_DIR ${protobuf_INCLUDE_DIR}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册