-
Notifications
You must be signed in to change notification settings - Fork 0
Update protobuf to v25.1 #183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@@ -10,13 +10,14 @@ | |||
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. | |||
# | |||
|
|||
option(ABSL_PROPAGATE_CXX_STD "Use CMake C++ standard meta features (e.g. cxx_std_14) that propagate to targets that link to Abseil" true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protobuf now has abseil, hence the need for this. I believe in the very latest version they've removed abseil, but we aren't there yet.
if (x_CXX_STANDARD) | ||
list(APPEND language_standards_args CXX ${x_CXX_STANDARD}) | ||
elseif (SWIFT_CXX_STANDARD) | ||
list(APPEND language_standards_args CXX ${SWIFT_CXX_STANDARD}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here if the caller specified the CXX_STANDARD
it prioritizes that over the global variable SWIFT_CXX_STANDARD
@@ -261,7 +261,7 @@ endfunction() | |||
|
|||
function(swift_add_test target) | |||
set(argOption "INTEGRATION_TEST" "PARALLEL" "POST_BUILD" "UNIT_TEST" "VALGRIND_MEMCHECK") | |||
set(argSingle "COMMENT" "WORKING_DIRECTORY") | |||
set(argSingle "C_STANDARD" "CXX_STANDARD" "COMMENT" "WORKING_DIRECTORY") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can not set the C++ standard used by the test code via the function call
Automated PR by Jenkins. If CI has passed successfully, merge away! **cmake** 8920f2a3 -> 361035b6 - 361035b6 : Update protobuf to v25.1 (swift-nav/cmake#183) - 5bf22f7d : Update CMake minimum required version to 3.13 (swift-nav/cmake#182) This pull request was created by https://jenkins.ci.swift-nav.com/job/CI%20Infra/job/submodule-update/20021/.
Automated PR by Jenkins. If CI has passed successfully, merge away! **cmake** 8920f2a3 -> 361035b6 - 361035b6 : Update protobuf to v25.1 (swift-nav/cmake#183) - 5bf22f7d : Update CMake minimum required version to 3.13 (swift-nav/cmake#182) This pull request was created by https://jenkins.ci.swift-nav.com/job/CI%20Infra/job/submodule-update/20021/. --------- Co-authored-by: Rodrigo Reichert <[email protected]>
Changes
Since we are upgrading the protobuf version, the location for the root CMakeLists.txt has changed, hence the update.
We also updated the swift targets (ex:
swift_add_library
orswift_add_executable
) so that we can now set a global default C++ version withSWIFT_CXX_STANDARD
.Lastly tried to unify the interface between
swift_add_test
and the rest of the other swift targets sinceswift_add_test
was developed separately to the rest, hence the difference in interface.These changes will allow us to set the C++ for our Swift targets independently from the third party libraries.