File: conanfile.py

package info (click to toggle)
rocrand 5.7.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 72,360 kB
  • sloc: cpp: 161,239; f90: 2,881; python: 1,798; sh: 342; xml: 210; makefile: 56
file content (22 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2021 Advanced Micro Devices, Inc.
# This conanfile is used to install development requirements,
# e.g.
#   conan install -o clients=True -if build/deps .

from conans import ConanFile, CMake

class ConanPkgReqs(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "cmake_find_package"
    options = {
        "shared": [True, False],
        "clients": [True, False],
    }
    default_options = {
        "shared": True,
        "clients": False,
    }

    def requirements(self):
        if self.options.clients:
            self.requires("gtest/1.11.0")