mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 10:57:16 +02:00
feat: Conan 2.0 requires the explicit declaration of the requirement being tested
This commit is contained in:
@ -23,9 +23,14 @@
|
|||||||
from conans import ConanFile, tools
|
from conans import ConanFile, tools
|
||||||
from conan.tools.cmake import CMake
|
from conan.tools.cmake import CMake
|
||||||
|
|
||||||
|
|
||||||
class TestPackageConan(ConanFile):
|
class TestPackageConan(ConanFile):
|
||||||
settings = "os", "compiler", "build_type", "arch"
|
settings = "os", "compiler", "build_type", "arch"
|
||||||
generators = "CMakeToolchain", "CMakeDeps"
|
generators = "CMakeToolchain", "CMakeDeps"
|
||||||
|
test_type = "explicit" # TODO Remove for Conan 2.0
|
||||||
|
|
||||||
|
def requirements(self):
|
||||||
|
self.requires(self.tested_reference_str)
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
cmake = CMake(self)
|
cmake = CMake(self)
|
||||||
|
Reference in New Issue
Block a user