mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-06 13:44:27 +02:00
build: conanfile.py
updated after the CCI review
This commit is contained in:
@@ -54,7 +54,6 @@ class MPUnitsConan(ConanFile):
|
|||||||
license = "MIT"
|
license = "MIT"
|
||||||
url = "https://github.com/mpusz/units"
|
url = "https://github.com/mpusz/units"
|
||||||
settings = "os", "arch", "compiler", "build_type"
|
settings = "os", "arch", "compiler", "build_type"
|
||||||
requires = "gsl-lite/0.40.0"
|
|
||||||
options = {"downcast_mode": ["off", "on", "auto"]}
|
options = {"downcast_mode": ["off", "on", "auto"]}
|
||||||
default_options = {"downcast_mode": "on"}
|
default_options = {"downcast_mode": "on"}
|
||||||
exports = ["LICENSE.md"]
|
exports = ["LICENSE.md"]
|
||||||
@@ -66,6 +65,7 @@ class MPUnitsConan(ConanFile):
|
|||||||
"example/*",
|
"example/*",
|
||||||
"CMakeLists.txt",
|
"CMakeLists.txt",
|
||||||
]
|
]
|
||||||
|
package_type = "header-library"
|
||||||
no_copy_source = True
|
no_copy_source = True
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -116,6 +116,7 @@ class MPUnitsConan(ConanFile):
|
|||||||
self.version = version.strip()
|
self.version = version.strip()
|
||||||
|
|
||||||
def requirements(self):
|
def requirements(self):
|
||||||
|
self.requires("gsl-lite/0.40.0")
|
||||||
if self._use_libfmt:
|
if self._use_libfmt:
|
||||||
self.requires("fmt/8.1.1")
|
self.requires("fmt/8.1.1")
|
||||||
if self._use_range_v3:
|
if self._use_range_v3:
|
||||||
|
Reference in New Issue
Block a user