-
Notifications
You must be signed in to change notification settings - Fork 26
/
conanfile.py
27 lines (23 loc) · 992 Bytes
/
conanfile.py
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
from conans import ConanFile, CMake
class VariantLiteConan(ConanFile):
version = "2.0.0"
name = "variant-lite"
description = "A single-file header-only version of a C++17-like variant, a type-safe union for C++98, C++11 and later"
license = "Boost Software License - Version 1.0. http://www.boost.org/LICENSE_1_0.txt"
url = "https://github.com/martinmoene/variant-lite.git"
exports_sources = "include/nonstd/*", "CMakeLists.txt", "cmake/*", "LICENSE.txt"
settings = "compiler", "build_type", "arch"
build_policy = "missing"
author = "Martin Moene"
def build(self):
"""Avoid warning on build step"""
pass
def package(self):
"""Run CMake install"""
cmake = CMake(self)
cmake.definitions["VARIANT_LITE_OPT_BUILD_TESTS"] = "OFF"
cmake.definitions["VARIANT_LITE_OPT_BUILD_EXAMPLES"] = "OFF"
cmake.configure()
cmake.install()
def package_info(self):
self.info.header_only()