Skip to content

Commit f4b3102

Browse files
committed
Use scoped options
1 parent fbd0796 commit f4b3102

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/debian.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,14 @@ jobs:
7272
# Loop over all recipe config files.
7373
for config in ../configs/recipes/*.json; do
7474
json=${config##../configs/recipes/}
75-
# Extract the recipe name, directory, version, and options.
75+
# Extract the recipe name, directory, version, and options. Note
76+
# that Conan expects the options to be scoped with either '&:'
77+
# meaning only the current recipe or '*:' meaning all dependent
78+
# recipes as well; we use the latter here.
7679
name=$(jq -r '.name' ${config})
7780
dir=$(jq -r '.dir' ${config})
7881
version=$(jq -r '.version' ${config})
79-
opts=$(jq -r '.options | join(" -o ") | if length == 0 then "" else "-o " + . end' ${config})
82+
opts=$(jq -r '.options | join(" -o *:") | if length == 0 then "" else "-o *:" + . end' ${config})
8083
# Create the recipe.
8184
echo "Creating recipe '${name}@${version}' with options '${opts}'."
8285
conan create ${name}/${dir} \

0 commit comments

Comments
 (0)