Skip to content

Commit 98ebd7e

Browse files
authored
Apply LTS transformations for 20250127 LTS branch (#1815)
1 parent c64f219 commit 98ebd7e

File tree

4 files changed

+8
-18
lines changed

4 files changed

+8
-18
lines changed

Diff for: CMakeLists.txt

+3-13
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ if (POLICY CMP0141)
2323
cmake_policy(SET CMP0141 NEW)
2424
endif (POLICY CMP0141)
2525

26-
project(absl LANGUAGES CXX)
27-
set(ABSL_SOVERSION 0)
26+
project(absl LANGUAGES CXX VERSION 20250127)
27+
set(ABSL_SOVERSION "2501.0.0")
2828
include(CTest)
2929

3030
# Output directory is correct by default for most build setups. However, when
@@ -170,17 +170,7 @@ endif()
170170
add_subdirectory(absl)
171171

172172
if(ABSL_ENABLE_INSTALL)
173-
# absl:lts-remove-begin(system installation is supported for LTS releases)
174-
# We don't support system-wide installation
175-
list(APPEND SYSTEM_INSTALL_DIRS "/usr/local" "/usr" "/opt/" "/opt/local" "c:/Program Files/${PROJECT_NAME}")
176-
if(NOT DEFINED CMAKE_INSTALL_PREFIX OR CMAKE_INSTALL_PREFIX IN_LIST SYSTEM_INSTALL_DIRS)
177-
message(WARNING "\
178-
The default and system-level install directories are unsupported except in LTS \
179-
releases of Abseil. Please set CMAKE_INSTALL_PREFIX to install Abseil in your \
180-
source or build tree directly.\
181-
")
182-
endif()
183-
# absl:lts-remove-end
173+
184174

185175
# install as a subdirectory only
186176
install(EXPORT ${PROJECT_NAME}Targets

Diff for: MODULE.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
module(
1818
name = "abseil-cpp",
19-
version = "head",
19+
version = "20250127.0",
2020
compatibility_level = 1,
2121
)
2222

Diff for: absl/base/config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@
117117
//
118118
// LTS releases can be obtained from
119119
// https://github.com/abseil/abseil-cpp/releases.
120-
#undef ABSL_LTS_RELEASE_VERSION
121-
#undef ABSL_LTS_RELEASE_PATCH_LEVEL
120+
#define ABSL_LTS_RELEASE_VERSION 20250127
121+
#define ABSL_LTS_RELEASE_PATCH_LEVEL 0
122122

123123
// Helper macro to convert a CPP variable to a string literal.
124124
#define ABSL_INTERNAL_DO_TOKEN_STR(x) #x

Diff for: absl/base/options.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@
225225
// be changed to a new, unique identifier name. In particular "head" is not
226226
// allowed.
227227

228-
#define ABSL_OPTION_USE_INLINE_NAMESPACE 0
229-
#define ABSL_OPTION_INLINE_NAMESPACE_NAME head
228+
#define ABSL_OPTION_USE_INLINE_NAMESPACE 1
229+
#define ABSL_OPTION_INLINE_NAMESPACE_NAME lts_20250127
230230

231231
// ABSL_OPTION_HARDENED
232232
//

0 commit comments

Comments
 (0)