feat: Conan 2.0 requires the explicit declaration of the requirement being tested
This commit is contained in:
1 parent
10a1c06dfa
commit
ac8e32fcda
1 file changed
+5
@@ -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