diff options
author | Derek Mauro <761129+derekmauro@users.noreply.github.com> | 2024-01-16 13:30:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 13:30:44 -0500 |
commit | ad73c6dc1a253203c1c8b529cda18f2138d49df0 (patch) | |
tree | 3e20942196480e832a94e060f48f0ba1552049c3 /CMakeLists.txt | |
parent | 10f3e6117b1154ca8e7e744809d82988f0ff481d (diff) | |
download | abseil-ad73c6dc1a253203c1c8b529cda18f2138d49df0.tar.gz abseil-ad73c6dc1a253203c1c8b529cda18f2138d49df0.tar.bz2 abseil-ad73c6dc1a253203c1c8b529cda18f2138d49df0.zip |
Apply LTS transformations for 20240116 LTS branch (#1599)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 87f8ae82..194f8708 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ if (POLICY CMP0141) cmake_policy(SET CMP0141 NEW) endif (POLICY CMP0141) -project(absl LANGUAGES CXX) +project(absl LANGUAGES CXX VERSION 20240116) include(CTest) # Output directory is correct by default for most build setups. However, when @@ -186,17 +186,7 @@ endif() add_subdirectory(absl) if(ABSL_ENABLE_INSTALL) - # absl:lts-remove-begin(system installation is supported for LTS releases) - # We don't support system-wide installation - list(APPEND SYSTEM_INSTALL_DIRS "/usr/local" "/usr" "/opt/" "/opt/local" "c:/Program Files/${PROJECT_NAME}") - if(NOT DEFINED CMAKE_INSTALL_PREFIX OR CMAKE_INSTALL_PREFIX IN_LIST SYSTEM_INSTALL_DIRS) - message(WARNING "\ - The default and system-level install directories are unsupported except in LTS \ - releases of Abseil. Please set CMAKE_INSTALL_PREFIX to install Abseil in your \ - source or build tree directly.\ - ") - endif() - # absl:lts-remove-end + # install as a subdirectory only install(EXPORT ${PROJECT_NAME}Targets |