File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class ExpectedConan(ConanFile):
7
7
# Package Info
8
8
name = "Expected"
9
9
version = "0.0.1"
10
- description = "Expect the unexpected "
10
+ description = " A lightweight C++11-compatible error-handling mechanism "
11
11
url = "https://github.com/bitwizeshift/Expected"
12
12
author = "Matthew Rodusek <[email protected] >"
13
13
license = "MIT"
@@ -17,7 +17,8 @@ class ExpectedConan(ConanFile):
17
17
exports_sources = ( "CMakeLists.txt" ,
18
18
"cmake/*" ,
19
19
"include/*" ,
20
- "LICENSE" )
20
+ "test/*" ,
21
+ "LICENSE" )
21
22
22
23
# Settings
23
24
options = {}
@@ -27,26 +28,18 @@ class ExpectedConan(ConanFile):
27
28
# Dependencies
28
29
build_requires = ("Catch2/2.7.1@catchorg/stable" )
29
30
30
-
31
- def configure_cmake (self ):
31
+ def package (self ):
32
32
cmake = CMake (self )
33
-
33
+ cmake . definitions [ "EXPECTED_COMPILE_UNIT_TESTS" ] = "ON"
34
34
cmake .configure ()
35
- return cmake
36
-
37
35
38
- def build (self ):
39
- cmake = self .configure_cmake ()
36
+ # Compile and run the unit tests
40
37
cmake .build ()
41
- # cmake.test( )
38
+ cmake .build ( target = "test" )
42
39
43
-
44
- def package (self ):
45
- cmake = self .configure_cmake ()
46
40
cmake .install ()
47
41
48
42
self .copy (pattern = "LICENSE" , dst = "licenses" )
49
43
50
-
51
44
def package_id (self ):
52
45
self .info .header_only ()
You can’t perform that action at this time.
0 commit comments