From c8375f8651ca11c100beab81740f54a018a6ea01 Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Tue, 23 May 2023 10:59:56 +0800 Subject: [PATCH] fix windows compiler error (#54029) --- cmake/external/protobuf.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/external/protobuf.cmake b/cmake/external/protobuf.cmake index 8e18bc49442..c6f3eb23e38 100755 --- a/cmake/external/protobuf.cmake +++ b/cmake/external/protobuf.cmake @@ -242,6 +242,8 @@ function(build_protobuf TARGET_NAME BUILD_FOR_HOST) set(PROTOBUF_REPOSITORY ${GIT_URL}/protocolbuffers/protobuf.git) # Change the tag to support building with vs2019 set(PROTOBUF_TAG 01a05a53f40ca2ac5f0af10c6cc0810bee39b792) + execute_process(COMMAND cd ${SOURCE_DIR} && git checkout + 01a05a53f40ca2ac5f0af10c6cc0810bee39b792) else() if(WITH_PSLIB) set(PROTOBUF_REPOSITORY "https://github.com/google/protobuf.git") -- GitLab