GoogleUtilities.cmake 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 2021 Google LLC
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. include(ExternalProject)
  15. # When updating the below version, be sure to also update the `URL_HASH` in the
  16. # below `ExternalProject_Add` function. Update the `URL_HASH` by:
  17. # 1. Downloading the version's tarball from the URL below.
  18. # - https://github.com/google/GoogleUtilities/archive/${version}.tar.gz
  19. # 2. Running `shasum` on the downloaded tarball.
  20. # - `shasum -a 256 GoogleUtilities-${version}.tar.gz`
  21. # 3. Copying the output of the above command into the `URL_HASH` below.
  22. set(version 8.0.0)
  23. ExternalProject_Add(
  24. GoogleUtilities
  25. DOWNLOAD_DIR ${FIREBASE_DOWNLOAD_DIR}
  26. DOWNLOAD_NAME GoogleUtilities-${version}.tar.gz
  27. URL https://github.com/google/GoogleUtilities/archive/${version}.tar.gz
  28. URL_HASH SHA256=570f492dcf5ead37ca4dd11cfb65f3f6fd82ebf42658e9df687047d17b290f79
  29. PREFIX ${PROJECT_BINARY_DIR}
  30. CONFIGURE_COMMAND ""
  31. BUILD_COMMAND ""
  32. INSTALL_COMMAND ""
  33. TEST_COMMAND ""
  34. HTTP_HEADER "${EXTERNAL_PROJECT_HTTP_HEADER}"
  35. )