Skip to content

Commit a79a2bb

Browse files
authored
Use cache_variables for CMake options in conanfile.py (#52)
* Use cache_variables for CMake options in conanfile.py * use Ubuntu slim instead of latest
1 parent 75a04ec commit a79a2bb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
# for matrix check https://docs.github.com/en/actions/reference/specifications-for-github-hosted-runners
1616
jobs:
1717
prepare_matrix:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-slim
1919
outputs:
2020
matrix: ${{ steps.matrix_setup.outputs.matrix }}
2121
steps:

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def generate(self):
100100
tc.variables["ManiVault_DIR"] = manivault_dir
101101

102102
# Set some build options
103-
tc.variables["MV_UNITY_BUILD"] = "ON"
103+
tc.cache_variables["MV_UNITY_BUILD"] = "ON"
104104

105105
# Use vcpkg-installed dependencies if there are any
106106
if os.environ.get("VCPKG_ROOT", None):

0 commit comments

Comments
 (0)