Skip to content

Commit b090b00

Browse files
committed
lastpass-cli: update to use modern cmake syntax
Signed-off-by: Rui Chen <[email protected]>
1 parent a42f6f5 commit b090b00

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Formula/l/lastpass-cli.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ class LastpassCli < Formula
3434
def install
3535
ENV["XML_CATALOG_FILES"] = etc/"xml/catalog"
3636

37-
mkdir "build" do
38-
system "cmake", "..", *std_cmake_args, "-DCMAKE_INSTALL_MANDIR:PATH=#{man}"
39-
system "make", "install", "install-doc"
40-
end
37+
system "cmake", "-S", ".", "-B", "build", "-DCMAKE_INSTALL_MANDIR=#{man}", *std_cmake_args
38+
system "cmake", "--build", "build", "--target", "install", "--target", "install-doc"
4139

4240
bash_completion.install "contrib/lpass_bash_completion"
4341
zsh_completion.install "contrib/lpass_zsh_completion" => "_lpass"

0 commit comments

Comments
 (0)