From 53ce406a3f37b023a05977c8131678037b4224de Mon Sep 17 00:00:00 2001 From: zlsh80826 Date: Wed, 21 Dec 2022 10:52:57 +0800 Subject: [PATCH] Add CMAKE_GENERATOR for protobuf (#49184) --- 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 5903edebae..e3c774d29d 100755 --- a/cmake/external/protobuf.cmake +++ b/cmake/external/protobuf.cmake @@ -292,7 +292,7 @@ function(build_protobuf TARGET_NAME BUILD_FOR_HOST) DEPENDS zlib CONFIGURE_COMMAND ${CMAKE_COMMAND} ${PROTOBUF_SOURCE_DIR}/cmake ${OPTIONAL_ARGS} - -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_SKIP_RPATH=ON + -G${CMAKE_GENERATOR} -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_SKIP_RPATH=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=${THIRD_PARTY_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${PROTOBUF_INSTALL_DIR} -- GitLab