diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2020-10-27 17:21:06 -0700 |
---|---|---|
committer | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2020-10-28 20:50:30 +0000 |
commit | bb55342cbca1f67335f46ee07cdc1f30e4c3b140 (patch) | |
tree | 35d73359fd09cc16d1fbb857909581bad75b765e /third_party/abseil-cpp/CMake/AbseilInstallDirs.cmake | |
parent | 3e1889fd3ec2121f051cded7fa3aaa946b442a6d (diff) | |
download | webrtc-bb55342cbca1f67335f46ee07cdc1f30e4c3b140.tar.gz |
Import abseil-cpp to third_party
Renamed abseil modules to make them webrtc specific.
Restricted visibility of abseil modules to webrtc packages.
Bug: 171836454
Test: Builds
Change-Id: Icf24c7e3093a77dd9a26e7ec78bd531eb1ad3dec
Diffstat (limited to 'third_party/abseil-cpp/CMake/AbseilInstallDirs.cmake')
-rw-r--r-- | third_party/abseil-cpp/CMake/AbseilInstallDirs.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/third_party/abseil-cpp/CMake/AbseilInstallDirs.cmake b/third_party/abseil-cpp/CMake/AbseilInstallDirs.cmake new file mode 100644 index 0000000000..b67272f830 --- /dev/null +++ b/third_party/abseil-cpp/CMake/AbseilInstallDirs.cmake @@ -0,0 +1,20 @@ +include(GNUInstallDirs) + +# absl_VERSION is only set if we are an LTS release being installed, in which +# case it may be into a system directory and so we need to make subdirectories +# for each installed version of Abseil. This mechanism is implemented in +# Abseil's internal Copybara (https://github.com/google/copybara) workflows and +# isn't visible in the CMake buildsystem itself. + +if(absl_VERSION) + set(ABSL_SUBDIR "${PROJECT_NAME}_${PROJECT_VERSION}") + set(ABSL_INSTALL_BINDIR "${CMAKE_INSTALL_BINDIR}/${ABSL_SUBDIR}") + set(ABSL_INSTALL_CONFIGDIR "${CMAKE_INSTALL_LIBDIR}/cmake/${ABSL_SUBDIR}") + set(ABSL_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}/{ABSL_SUBDIR}") + set(ABSL_INSTALL_LIBDIR "${CMAKE_INSTALL_LIBDIR}/${ABSL_SUBDIR}") +else() + set(ABSL_INSTALL_BINDIR "${CMAKE_INSTALL_BINDIR}") + set(ABSL_INSTALL_CONFIGDIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") + set(ABSL_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}") + set(ABSL_INSTALL_LIBDIR "${CMAKE_INSTALL_LIBDIR}") +endif()
\ No newline at end of file |