-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[protobuf] Update to 3.21.2 (#24400)
* [protobuf] Update to 3.20.1 * x-add-version * [protobuf] Fix Linux build error * x-add-version * update protobuf to 3.21.2 and fix build error * x-add-version * Update protobuf.json * add version * x-add-version * fix gazebo build error * x-add-version * update gazebo version * update versions db Co-authored-by: Lily Wang <v-lilywang@microsoft.com> Co-authored-by: Victor Romero <viromer@microsoft.com>
- Loading branch information
1 parent
cf287a6
commit 087ef91
Showing
21 changed files
with
162 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff --git a/include/ignition/msgs/Generator.hh b/include/ignition/msgs/Generator.hh | ||
index 62d77c6..5785e51 100644 | ||
--- a/include/ignition/msgs/Generator.hh | ||
+++ b/include/ignition/msgs/Generator.hh | ||
@@ -43,9 +43,9 @@ class Generator : public CodeGenerator | ||
/// \param[in] _generatorContext Output directory. | ||
/// \param[in] _error Unused string value | ||
public: virtual bool Generate(const FileDescriptor *_file, | ||
- const string &_parameter, | ||
+ const std::string &_parameter, | ||
OutputDirectory *_generatorContext, | ||
- string *_error) const; | ||
+ std::string *_error) const; | ||
|
||
// private: GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Generator); | ||
}; | ||
diff --git a/src/Generator.cc b/src/Generator.cc | ||
index f703fb8..922d637 100644 | ||
--- a/src/Generator.cc | ||
+++ b/src/Generator.cc | ||
@@ -67,7 +67,7 @@ Generator::~Generator() | ||
|
||
///////////////////////////////////////////////// | ||
bool Generator::Generate(const FileDescriptor *_file, | ||
- const string &/*_parameter*/, | ||
+ const std::string &/*_parameter*/, | ||
OutputDirectory *_generatorContext, | ||
std::string * /*_error*/) const | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff --git a/src/Generator.cc b/src/Generator.cc | ||
index 3729ad4..099a46b 100644 | ||
--- a/src/Generator.cc | ||
+++ b/src/Generator.cc | ||
@@ -67,7 +67,7 @@ Generator::~Generator() | ||
|
||
///////////////////////////////////////////////// | ||
bool Generator::Generate(const FileDescriptor *_file, | ||
- const string &/*_parameter*/, | ||
+ const std::string &/*_parameter*/, | ||
OutputDirectory *_generatorContext, | ||
std::string * /*_error*/) const | ||
{ | ||
diff --git a/src/Generator.hh b/src/Generator.hh | ||
index c0f2336..6132274 100644 | ||
--- a/src/Generator.hh | ||
+++ b/src/Generator.hh | ||
@@ -44,9 +44,9 @@ class Generator : public CodeGenerator | ||
/// \param[in] _generatorContext Output directory. | ||
/// \param[in] _error Unused string value | ||
public: virtual bool Generate(const FileDescriptor *_file, | ||
- const string &_parameter, | ||
+ const std::string &_parameter, | ||
OutputDirectory *_generatorContext, | ||
- string *_error) const; | ||
+ std::string *_error) const; | ||
|
||
// private: GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Generator); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff --git a/src/Generator.cc b/src/Generator.cc | ||
index d490b5a..4265845 100644 | ||
--- a/src/Generator.cc | ||
+++ b/src/Generator.cc | ||
@@ -67,7 +67,7 @@ Generator::~Generator() | ||
|
||
///////////////////////////////////////////////// | ||
bool Generator::Generate(const FileDescriptor *_file, | ||
- const string &/*_parameter*/, | ||
+ const std::string &/*_parameter*/, | ||
OutputDirectory *_generatorContext, | ||
std::string * /*_error*/) const | ||
{ | ||
diff --git a/src/Generator.hh b/src/Generator.hh | ||
index c0f2336..6132274 100644 | ||
--- a/src/Generator.hh | ||
+++ b/src/Generator.hh | ||
@@ -44,9 +44,9 @@ class Generator : public CodeGenerator | ||
/// \param[in] _generatorContext Output directory. | ||
/// \param[in] _error Unused string value | ||
public: virtual bool Generate(const FileDescriptor *_file, | ||
- const string &_parameter, | ||
+ const std::string &_parameter, | ||
OutputDirectory *_generatorContext, | ||
- string *_error) const; | ||
+ std::string *_error) const; | ||
|
||
// private: GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Generator); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt | ||
index 51e8478..64347c4 100644 | ||
--- a/cmake/CMakeLists.txt | ||
+++ b/cmake/CMakeLists.txt | ||
@@ -182,7 +182,7 @@ else (protobuf_BUILD_SHARED_LIBS) | ||
# making programmatic control difficult. Prefer the functionality in newer | ||
# CMake versions when available. | ||
if(CMAKE_VERSION VERSION_GREATER 3.15 OR CMAKE_VERSION VERSION_EQUAL 3.15) | ||
- set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$<CONFIG:Debug>:Debug>) | ||
+ | ||
else() | ||
# In case we are building static libraries, link also the runtime library statically | ||
# so that MSVCR*.DLL is not required at runtime. | ||
diff --git a/cmake/install.cmake b/cmake/install.cmake | ||
index 4e1c5de..d3aa865 100644 | ||
--- a/cmake/install.cmake | ||
+++ b/cmake/install.cmake | ||
@@ -32,7 +32,7 @@ if (protobuf_BUILD_PROTOC_BINARIES) | ||
install(TARGETS protoc EXPORT protobuf-targets | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc | ||
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc) | ||
- if (UNIX AND NOT APPLE) | ||
+ if (UNIX AND NOT APPLE AND NOT protobuf_MSVC_STATIC_RUNTIME) | ||
set_property(TARGET protoc | ||
PROPERTY INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}") | ||
elseif (APPLE) | ||
diff --git a/cmake/install.cmake b/cmake/install.cmake | ||
index 825cb25..4f453d6 100644 | ||
--- a/cmake/install.cmake | ||
+++ b/cmake/install.cmake | ||
@@ -32,7 +32,7 @@ if (protobuf_BUILD_PROTOC_BINARIES) | ||
install(TARGETS protoc EXPORT protobuf-targets | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc | ||
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc) | ||
- if (UNIX AND NOT APPLE) | ||
+ if (UNIX AND NOT APPLE AND NOT protobuf_MSVC_STATIC_RUNTIME) | ||
set_property(TARGET protoc | ||
PROPERTY INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}") | ||
elseif (APPLE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters