Close process
This commit is contained in:
parent
d61ba6fe34
commit
94e2163514
|
|
@ -18,7 +18,7 @@ class Options
|
|||
|
||||
output = nil
|
||||
Dir.chdir __dir__ do
|
||||
output = IO.popen([@cmake, "-S", "sources", "-B", "build", "-L"]).read
|
||||
output = IO.popen([@cmake, "-S", "sources", "-B", "build", "-L"]) {|io| io.read}
|
||||
end
|
||||
@cmake_options = output.lines.drop_while {|line| line.chomp != "-- Cache values"}.drop(1)
|
||||
.filter_map {|line|
|
||||
|
|
|
|||
Loading…
Reference in New Issue