mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07: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 conan.tools.cmake import CMake
|
||||
|
||||
|
||||
class TestPackageConan(ConanFile):
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
generators = "CMakeToolchain", "CMakeDeps"
|
||||
test_type = "explicit" # TODO Remove for Conan 2.0
|
||||
|
||||
def requirements(self):
|
||||
self.requires(self.tested_reference_str)
|
||||
|
||||
def build(self):
|
||||
cmake = CMake(self)
|
||||
|
Reference in New Issue
Block a user