Skip to content

Commit e1d388e

Browse files
derekmaurocblichmannAbseil Team
authored
Abseil LTS 20210324, Patch 1 (#943)
* Add missing `add_subdirectory()` call for "cleanup" (#925) Since `absl::Cleanup` is now public, it should also be included in the `absl/CMakeLists.txt` file. Signed-off-by: Christian Blichmann <[email protected]> * Correctly install pkgconfig files under CMAKE_INSTALL_LIBDIR Fixes #931 PiperOrigin-RevId: 366816645 * AbseilConfigureCopts.cmake: fix AppleClang detection restore use of MATCHES in comparison with "Clang"; this was lost in: commit 22771d4 ... 24e1f5f72756046f5265abf618e951c341f09b8d by Derek Mauro <[email protected]>: Fixes failing CMake string comparisons https://cmake.org/cmake/help/latest/policy/CMP0054.html fixes: CMake Warning at absl/copts/AbseilConfigureCopts.cmake:61 (message): Unknown compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++. Building with no default flags Fixes #930 PiperOrigin-RevId: 366879337 * Increment SOVERSION to 2103.0.1 Co-authored-by: Christian Blichmann <[email protected]> Co-authored-by: Abseil Team <[email protected]>
1 parent 997aaf3 commit e1d388e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CMake/AbseilHelpers.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Requires:${PC_DEPS}\n\
181181
Libs: -L\${libdir} $<JOIN:${ABSL_CC_LIB_LINKOPTS}, > $<$<NOT:$<BOOL:${ABSL_CC_LIB_IS_INTERFACE}>>:-labsl_${_NAME}>\n\
182182
Cflags: -I\${includedir}${PC_CFLAGS}\n")
183183
INSTALL(FILES "${CMAKE_BINARY_DIR}/lib/pkgconfig/absl_${_NAME}.pc"
184-
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
184+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
185185
endif()
186186
endif()
187187

@@ -263,7 +263,7 @@ Cflags: -I\${includedir}${PC_CFLAGS}\n")
263263
if(ABSL_ENABLE_INSTALL)
264264
set_target_properties(${_NAME} PROPERTIES
265265
OUTPUT_NAME "absl_${_NAME}"
266-
SOVERSION "2103.0.0"
266+
SOVERSION "2103.0.1"
267267
)
268268
endif()
269269
else()

absl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
add_subdirectory(base)
1818
add_subdirectory(algorithm)
19+
add_subdirectory(cleanup)
1920
add_subdirectory(container)
2021
add_subdirectory(debugging)
2122
add_subdirectory(flags)

absl/copts/AbseilConfigureCopts.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ endif()
3535
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
3636
set(ABSL_DEFAULT_COPTS "${ABSL_GCC_FLAGS}")
3737
set(ABSL_TEST_COPTS "${ABSL_GCC_FLAGS};${ABSL_GCC_TEST_FLAGS}")
38-
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
39-
# MATCHES so we get both Clang and AppleClang
38+
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") # MATCHES so we get both Clang and AppleClang
4039
if(MSVC)
4140
# clang-cl is half MSVC, half LLVM
4241
set(ABSL_DEFAULT_COPTS "${ABSL_CLANG_CL_FLAGS}")

0 commit comments

Comments
 (0)