ned14 / outcome

Provides very lightweight outcome<T> and result<T> (non-Boost edition)
https://ned14.github.io/outcome
Other
675 stars 62 forks source link

Allow usage of system provided status-code #258

Closed BurningEnlightenment closed 2 years ago

BurningEnlightenment commented 2 years ago

Purpose

The current cmake buildsystem vendors the status-code headers which is at odds with most package managers which require using the version provided through them. Furthermore it is unergonomic for users who need to include additional categories like com_code.hpp.

Solution Sketch

Add a cmake feature toggle which instructs cmake to look for an installed status-code package. If configured that way, we would not install any status-code headers but reference the imported status-code::hl target.

Additional explanatory comments

github-actions[bot] commented 2 years ago

Unit Test Results

βŸβ€„1 files   -β€ŠβŸβ€„βŸβ€„2  36 suites   -β€Š146   0s :stopwatch: Β±0s 38 tests  -β€ŠβŸβ€„βŸβ€„3  38 :heavy_check_mark:  -β€ŠβŸβ€„βŸβ€„3  0 :zzz: Β±0  0 :x: Β±0  38 runs   -β€Š154  38 :heavy_check_mark:  -β€Š154  0 :zzz: Β±0  0 :x: Β±0 

Results for commit 147ec1e8. ± Comparison against base commit 99d1aac7.

github-actions[bot] commented 2 years ago

Unit Test Results

βŸβ€„βŸβ€„3 files  Β±0  182 suites  Β±0   0s :stopwatch: Β±0s βŸβ€„41 tests Β±0β€‚β€ƒβŸβ€„41 :heavy_check_mark: Β±0  0 :zzz: Β±0  0 :x: Β±0  192 runs  Β±0  192 :heavy_check_mark: Β±0  0 :zzz: Β±0  0 :x: Β±0 

Results for commit 147ec1e8. ± Comparison against base commit 99d1aac7.

github-actions[bot] commented 2 years ago

Unit Test Results

βŸβ€„1 files   -β€ŠβŸβ€„βŸβ€„2  75 suites   -β€Š107   0s :stopwatch: Β±0s 41 tests Β±βŸβ€„βŸβ€„0  41 :heavy_check_mark: Β±βŸβ€„βŸβ€„0  0 :zzz: Β±0  0 :x: Β±0  79 runs   -β€Š113  79 :heavy_check_mark:  -β€Š113  0 :zzz: Β±0  0 :x: Β±0 

Results for commit 147ec1e8. ± Comparison against base commit 99d1aac7.

github-actions[bot] commented 2 years ago

Unit Test Results

βŸβ€„1 files   -β€ŠβŸβ€„βŸβ€„2  75 suites   -β€Š107   0s :stopwatch: Β±0s 41 tests Β±βŸβ€„βŸβ€„0  41 :heavy_check_mark: Β±βŸβ€„βŸβ€„0  0 :zzz: Β±0  0 :x: Β±0  79 runs   -β€Š113  79 :heavy_check_mark:  -β€Š113  0 :zzz: Β±0  0 :x: Β±0 

Results for commit 147ec1e8. ± Comparison against base commit 99d1aac7.

github-actions[bot] commented 2 years ago

Unit Test Results

0 files   -β€ŠβŸβ€„βŸβ€„3  0 suites   -β€Š182   0s :stopwatch: Β±0s 0 tests  -β€ŠβŸβ€„41  0 :heavy_check_mark:  -β€ŠβŸβ€„41  0 :zzz: Β±0  0 :x: Β±0  0 runs   -β€Š192  0 :heavy_check_mark:  -β€Š192  0 :zzz: Β±0  0 :x: Β±0 

Results for commit 147ec1e8. ± Comparison against base commit 99d1aac7.

github-actions[bot] commented 2 years ago

Unit Test Results

βŸβ€„1 files   -β€ŠβŸβ€„βŸβ€„2  38 suites   -β€Š144   0s :stopwatch: Β±0s 40 tests  -β€ŠβŸβ€„βŸβ€„1  40 :heavy_check_mark:  -β€ŠβŸβ€„βŸβ€„1  0 :zzz: Β±0  0 :x: Β±0  40 runs   -β€Š152  40 :heavy_check_mark:  -β€Š152  0 :zzz: Β±0  0 :x: Β±0 

Results for commit 147ec1e8. ± Comparison against base commit 99d1aac7.