Skip to content

Commit b886529

Browse files
committed
Conanfile improvements
1 parent c315802 commit b886529

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

conanfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ class ScopeguardConan(ConanFile):
2424
"scope-fail",
2525
"scope-success",
2626
"unique-resource",
27-
"cmake",
2827
)
2928
settings = "os", "arch", "compiler", "build_type"
3029
exports = ["LICENSE"]
3130
exports_sources = ("CMakeLists.txt", "include/*", "test/*", "cmake/*")
3231
package_type = "header-library"
3332
options = {"unittest": [True, False], "enable_compat_header": [True, False]}
3433
default_options = {"unittest": False, "enable_compat_header": False}
35-
__requirements = ["catch2/3.10.0", "trompeloeil/49"]
3634

3735
def set_version(self):
3836
cmake_lists_content = load(
@@ -58,8 +56,8 @@ def set_version(self):
5856

5957
def requirements(self):
6058
if self.options.unittest:
61-
for req in self.__requirements:
62-
self.requires(req)
59+
self.requires("catch2/3.10.0")
60+
self.requires("trompeloeil/49")
6361

6462
def generate(self):
6563
tc = CMakeToolchain(self)

0 commit comments

Comments
 (0)