Skip to content

Commit

Permalink
json_spirit: fix build on Sequoia
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Sep 14, 2024
1 parent b9af655 commit 75f0f3e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Formula/j/json_spirit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ class JsonSpirit < Formula
depends_on "boost"

def install
args = std_cmake_args
args << "-DBUILD_STATIC_LIBRARIES=ON"
args = %w[
-DCMAKE_CXX_STANDARD=14
-DJSON_SPIRIT_DEMOS=OFF
-DJSON_SPIRIT_TESTS=OFF
]

system "cmake", *args
system "make"
system "cmake", "-S", ".", "-B", "build_static", "-DBUILD_STATIC_LIBS=ON", *args, *std_cmake_args
system "cmake", "--build", "build_static"
system "cmake", "--install", "build_static"

args = std_cmake_args
args << "-DBUILD_STATIC_LIBRARIES=OFF"
system "cmake", *args
system "make", "install"
system "cmake", "-S", ".", "-B", "build_shared", "-DBUILD_STATIC_LIBS=OFF", *args, *std_cmake_args
system "cmake", "--build", "build_shared"
system "cmake", "--install", "build_shared"
end
end

0 comments on commit 75f0f3e

Please sign in to comment.