Skip to content
Snippets Groups Projects
Commit d0161091 authored by Adam Vandenberg's avatar Adam Vandenberg Committed by Jack Nagel
Browse files

Let option override with/without descriptions

parent 6193167f
No related branches found
No related tags found
No related merge requests found
......@@ -831,12 +831,16 @@ private
def finalize_dsl
# Synthesize options for optional dependencies
dependencies.deps.select(&:optional?).each do |dep|
option "with-#{dep.name}", "Build with #{dep.name} support"
unless build.has_option? "with-#{dep.name}"
option "with-#{dep.name}", "Build with #{dep.name} support"
end
end
# Synthesize options for recommended dependencies
dependencies.deps.select(&:recommended?).each do |dep|
option "without-#{dep.name}", "Build without #{dep.name} support"
unless build.has_option? "without-#{dep.name}"
option "without-#{dep.name}", "Build without #{dep.name} support"
end
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment