-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[abseil] update to latest release (20230125.0) (#29692)
* [abseil] update to latest release (20230125.0) * Fix DLL support * Update version * I do not understand the warning about version-string, fixing it seems to make things worse * [etcd-cpp-apiv3] Abseil requires C++14 * Update a downstream port * I just cannot get these right, argh * Try to switch from version-string to version (again) * Regenerate versions * Improve etcd handling of C++ standard * Regenerate versions * Use target_link_libraries to get compilation flags * Update version files
- Loading branch information
Showing
11 changed files
with
85 additions
and
112 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
diff --git a/CMake/AbseilDll.cmake b/CMake/AbseilDll.cmake | ||
index c4a41e6..da46613 100644 | ||
--- a/CMake/AbseilDll.cmake | ||
+++ b/CMake/AbseilDll.cmake | ||
@@ -787,7 +787,7 @@ Cflags: -I\${includedir}${PC_CFLAGS}\n") | ||
# Abseil libraries require C++14 as the current minimum standard. When | ||
# compiled with C++17 (either because it is the compiler's default or | ||
# explicitly requested), then Abseil requires C++17. | ||
- _absl_target_compile_features_if_available(${_NAME} PUBLIC ${ABSL_INTERNAL_CXX_STD_FEATURE}) | ||
+ _absl_target_compile_features_if_available(${_dll} PUBLIC ${ABSL_INTERNAL_CXX_STD_FEATURE}) | ||
else() | ||
# Note: This is legacy (before CMake 3.8) behavior. Setting the | ||
# target-level CXX_STANDARD property to ABSL_CXX_STANDARD (which is | ||
@@ -797,8 +797,8 @@ Cflags: -I\${includedir}${PC_CFLAGS}\n") | ||
# CXX_STANDARD_REQUIRED does guard against the top-level CMake project | ||
# not having enabled CMAKE_CXX_STANDARD_REQUIRED (which prevents | ||
# "decaying" to an older standard if the requested one isn't available). | ||
- set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD ${ABSL_CXX_STANDARD}) | ||
- set_property(TARGET ${_NAME} PROPERTY CXX_STANDARD_REQUIRED ON) | ||
+ set_property(TARGET ${_dll} PROPERTY CXX_STANDARD ${ABSL_CXX_STANDARD}) | ||
+ set_property(TARGET ${_dll} PROPERTY CXX_STANDARD_REQUIRED ON) | ||
endif() | ||
|
||
install(TARGETS ${_dll} EXPORT ${PROJECT_NAME}Targets |
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
16 changes: 16 additions & 0 deletions
16
ports/etcd-cpp-apiv3/0001-do-not-hardcode-cxx-standard.patch
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,16 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 2caacf8..ecdbce3 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -78,10 +78,7 @@ macro(use_cxx target) | ||
target_compile_options(${target} PRIVATE "-std=c++${ETCD_CMAKE_CXX_STANDARD}") | ||
endif() | ||
else() | ||
- set_target_properties(${target} PROPERTIES | ||
- CXX_STANDARD ${ETCD_CMAKE_CXX_STANDARD} | ||
- CXX_STANDARD_REQUIRED ON | ||
- ) | ||
+ target_compile_features(${target} PUBLIC cxx_std_${ETCD_CMAKE_CXX_STANDARD}) | ||
endif() | ||
endmacro(use_cxx) | ||
|
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,17 @@ | ||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 8d5404f..e77e92a 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -21,6 +21,12 @@ add_library(etcd-cpp-api-core-objects OBJECT ${CPP_CLIENT_CORE_SRC} ${PROTOBUF_G | ||
use_cxx(etcd-cpp-api-core-objects) | ||
add_dependencies(etcd-cpp-api-core-objects protobuf_generates) | ||
include_generated_protobuf_files(etcd-cpp-api-core-objects) | ||
+target_link_libraries(etcd-cpp-api-core-objects PUBLIC | ||
+ ${Boost_LIBRARIES} | ||
+ ${PROTOBUF_LIBRARIES} | ||
+ ${OPENSSL_LIBRARIES} | ||
+ ${GRPC_LIBRARIES} | ||
+) | ||
|
||
# add the core library, includes the sycnhronous client only | ||
add_library(etcd-cpp-api-core $<TARGET_OBJECTS:etcd-cpp-api-core-objects>) |
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