Skip to content

Commit e0751c0

Browse files
authored
Rename tests option in conanfile (#9)
1 parent 68d461d commit e0751c0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
-of "${BUILD_DIR}" \
7272
-b missing \
7373
-s "build_type=${BUILD_TYPE}" \
74-
-o "&:with_tests=True" \
74+
-o "&:tests=True" \
7575
--profile:all "${CONAN_PROFILE}"
7676
7777
- name: Run CMake

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Run following commands to build the library
6363
2. Buld dependencies:
6464

6565
```bash
66-
conan install .. --build=missing -o "&:with_tests=True"
66+
conan install .. --build=missing -o "&:tests=True"
6767
```
6868

6969
3. Run CMake:

conanfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ class MptCryptoConan(ConanFile):
1414
options = {
1515
"shared": [True, False],
1616
"fPIC": [True, False],
17-
"with_tests": [True, False],
17+
"tests": [True, False],
1818
}
1919
default_options = {
2020
"shared": False,
2121
"fPIC": True,
22-
"with_tests": False,
22+
"tests": False,
2323
}
2424

2525
requires = [
@@ -37,7 +37,7 @@ def layout(self):
3737

3838
def generate(self):
3939
tc = CMakeToolchain(self)
40-
tc.variables["ENABLE_TESTS"] = self.options.with_tests
40+
tc.variables["ENABLE_TESTS"] = self.options.tests
4141
tc.generate()
4242

4343
deps = CMakeDeps(self)

0 commit comments

Comments
 (0)