Skip to content
Snippets Groups Projects
Commit 93811096 authored by Jack Nagel's avatar Jack Nagel
Browse files

Use Dependency#option_name in BuildOptions#add_dep_option

parent c6bc01ab
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ class BuildOptions
end
def add_dep_option(dep)
name = dep.name.split("/").last # strip any tap prefix
name = dep.option_name
if dep.optional? && !has_option?("with-#{name}")
add("with-#{name}", "Build with #{name} support")
elsif dep.recommended? && !has_option?("without-#{name}")
......
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