diff options
author | Derek Mauro <761129+derekmauro@users.noreply.github.com> | 2022-06-23 14:22:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 14:22:47 -0400 |
commit | 273292d1cfc0a94a65082ee350509af1d113344d (patch) | |
tree | 7e5ede61413177fa9a43102b625b0a0f64e50b60 /CMakeLists.txt | |
parent | 4dc63bade3ef2c099f328f2e08f6d4bf6658f0cf (diff) |
Apply LTS transformations for 20220623 LTS branch (#1202)20220623.rc120220623.0
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 8a20d04a..79869ff5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ if (POLICY CMP0091) cmake_policy(SET CMP0091 NEW) endif (POLICY CMP0091) -project(absl LANGUAGES CXX) +project(absl LANGUAGES CXX VERSION 20220623) include(CTest) # Output directory is correct by default for most build setups. However, when @@ -172,17 +172,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 |