Skip to content

Commit c2531d6

Browse files
committed
libdpp: use Homebrew nlohmann-json
This will use a vendored version otherwise. Let's also disable automatic detection of `vcpkg` and `conan`, and running `ldconfig` on Linux.
1 parent 1aa3f6e commit c2531d6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Formula/lib/libdpp.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,21 @@ class Libdpp < Formula
1515
end
1616

1717
depends_on "cmake" => :build
18+
depends_on "nlohmann-json" => :build
1819
depends_on "openssl@3"
1920
depends_on "opus"
2021
depends_on "pkgconf"
2122

2223
uses_from_macos "zlib"
2324

2425
def install
25-
system "cmake", "-S", ".", "-B", "build", "-DDPP_BUILD_TEST=OFF", *std_cmake_args
26+
system "cmake", "-S", ".", "-B", "build",
27+
"-DDPP_BUILD_TEST=OFF",
28+
"-DDPP_NO_CONAN=ON",
29+
"-DDPP_NO_VCPKG=ON",
30+
"-DDPP_USE_EXTERNAL_JSON=ON",
31+
"-DRUN_LDCONFIG=OFF",
32+
*std_cmake_args
2633
system "cmake", "--build", "build"
2734
system "cmake", "--install", "build"
2835
end

0 commit comments

Comments
 (0)