From 668a1b8bfe6067d805e6a5fbc7164eff8cf217d9 Mon Sep 17 00:00:00 2001 From: Liu Yiqun Date: Thu, 4 May 2017 06:00:35 +0000 Subject: [PATCH] Correct the definition of PROTOBUF_VERSION. --- cmake/external/protobuf.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/external/protobuf.cmake b/cmake/external/protobuf.cmake index 994ba14cfa0..b61833e2687 100644 --- a/cmake/external/protobuf.cmake +++ b/cmake/external/protobuf.cmake @@ -75,6 +75,7 @@ FUNCTION(build_protobuf TARGET_NAME BUILD_FOR_HOST) LIST(APPEND external_project_dependencies ${TARGET_NAME} PARENT_SCOPE) ENDFUNCTION() +SET(PROTOBUF_VERSION 3.1) IF(NOT CMAKE_CROSSCOMPILING) FIND_PACKAGE(Protobuf ${PROTOBUF_VERSION}) @@ -91,7 +92,6 @@ ELSE() CACHE FILEPATH "protobuf executable." FORCE) ENDIF() -SET(PROTOBUF_VERSION 3.1) IF(NOT PROTOBUF_FOUND) build_protobuf(protobuf FALSE) SET(PROTOBUF_INCLUDE_DIR ${protobuf_INCLUDE_DIR} -- GitLab