blob: ac6b7b0e28acf8f22bf10884d8cd97f9d91b1ec3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class GoogleCrc32c(CMakePackage):
"""CRC32C implementation with support for CPU-specific acceleration instructions."""
homepage = "https://github.com/google/crc32c"
url = "https://github.com/google/crc32c/archive/refs/tags/1.1.2.tar.gz"
maintainers("marcusboden")
license("BSD-3-Clause")
version("1.1.2", sha256="ac07840513072b7fcebda6e821068aa04889018f24e10e46181068fb214d7e56")
depends_on("cmake@3.1:", type="build")
def cmake_args(self):
args = [
self.define("CRC32C_BUILD_TESTS", False),
self.define("CRC32C_BUILD_BENCHMARKS", False),
self.define("CRC32C_USE_GLOG", False),
self.define("BUILD_SHARED_LIBS", True),
]
return args
|