File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
- from conans import ConanFile
1
+ from conans import ConanFile , CMake
2
2
3
3
class OptionalLiteConan (ConanFile ):
4
4
version = "3.1.1"
5
5
name = "optional-lite"
6
6
description = "A single-file header-only version of a C++17-like optional, a nullable object for C++98, C++11 and later"
7
7
license = "Boost Software License - Version 1.0. http://www.boost.org/LICENSE_1_0.txt"
8
8
url = "https://github.com/martinmoene/optional-lite.git"
9
- exports_sources = "include/nonstd/*" , "LICENSE.txt"
10
- build_policy = "missing"
9
+ exports_sources = "include/nonstd/*" , "CMakeLists.txt" , "cmake/*" , " LICENSE.txt"
10
+ build_policy = "missing"
11
11
author = "Martin Moene"
12
12
13
13
def build (self ):
14
14
"""Avoid warning on build step"""
15
15
pass
16
16
17
17
def package (self ):
18
- """Provide pkg/include/nonstd/*.hpp"""
19
- self .copy ("*.hpp" )
18
+ """Run CMake install"""
19
+ cmake = CMake (self )
20
+ cmake .definitions ["OPTIONAL_LITE_OPT_BUILD_TESTS" ] = "OFF"
21
+ cmake .definitions ["OPTIONAL_LITE_OPT_BUILD_EXAMPLES" ] = "OFF"
22
+ cmake .configure ()
23
+ cmake .install ()
20
24
21
25
def package_info (self ):
22
26
self .info .header_only ()
You can’t perform that action at this time.
0 commit comments