-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -250,8 +250,11 @@ function(swift_add_target target type) | |
if (x_C_STANDARD) | ||
list(APPEND language_standards_args C ${x_C_STANDARD}) | ||
endif() | ||
|
||
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}) | ||
Comment on lines
254
to
+257
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here if the caller specified the |
||
endif() | ||
|
||
if (x_INTERFACE AND x_OBJECT) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 |
||
set(argMulti "SRCS" "LINK" "INCLUDE") | ||
|
||
cmake_parse_arguments(x "${argOption}" "${argSingle}" "${argMulti}" ${ARGN}) | ||
|
@@ -290,9 +290,19 @@ function(swift_add_test target) | |
message(FATAL_ERROR "VALGRIND_MEMCHECK can only be specified with UNIT_TEST") | ||
endif() | ||
|
||
set(language_standards_args) | ||
if (x_C_STANDARD) | ||
list(APPEND language_standards_args C ${x_C_STANDARD}) | ||
endif() | ||
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}) | ||
endif() | ||
|
||
add_executable(${target} EXCLUDE_FROM_ALL ${x_SRCS}) | ||
set_target_properties(${target} PROPERTIES SWIFT_TYPE "test") | ||
swift_set_language_standards(${target} C_EXTENSIONS_ON) | ||
swift_set_language_standards(${target} ${language_standards_args} C_EXTENSIONS_ON) | ||
target_code_coverage(${target} AUTO ALL) | ||
if(x_INCLUDE) | ||
target_include_directories(${target} PRIVATE ${x_INCLUDE}) | ||
|
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.