summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/cquery/package.py
blob: c2e44a958985bd193688ee53f6415c76275ad7b2 (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
# Copyright 2013-2022 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 Cquery(CMakePackage):
    """a C++ header-only library for Nearest Neighbor (NN) search wih KD-trees.
    """

    homepage = "https://github.com/cquery-project/cquery"
    git      = "https://github.com/cquery-project/cquery.git"

    version('2018-08-23', commit='70c755b2e390d3edfb594a84a7531beb26b2bc07',
            submodules=True)

    depends_on('llvm')

    # trivial patch (missing header) by mueller@kip.uni-heidelberg.de
    patch('fix-gcc10.patch', level=0, when='%gcc@10.0:')

    def cmake_args(self):
        args = ['-DCMAKE_EXPORT_COMPILE_COMMANDS=YES',
                '-DSYSTEM_CLANG=ON']
        return args