-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
25 lines (21 loc) · 710 Bytes
/
conanfile.py
File metadata and controls
25 lines (21 loc) · 710 Bytes
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
from conans import ConanFile, RunEnvironment, tools
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps
class FailConan(ConanFile):
name = "fail-test-case"
version = "0.0.1"
license = "Apache-2.0"
tool_requires = ("cmake/3.22.3")
requires = ("openssl/1.1.1m")
settings = "os", "compiler", "build_type", "arch"
description = ""
def generate(self):
tc = CMakeToolchain(self)
tc.generate()
deps = CMakeDeps(self)
deps.generate()
def build(self):
env_build = RunEnvironment(self)
with tools.environment_append(env_build.vars):
cmake = CMake(self)
cmake.configure()
cmake.build()