Skip to content

Commit

Permalink
use std_cmake_args
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaxson committed Jan 5, 2021
1 parent 641a473 commit 56a33c1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
3 changes: 1 addition & 2 deletions Formula/corrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ def install
system "mkdir build"
cd "build" do
system "cmake",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_PREFIX=#{prefix}",
*std_cmake_args,
".."
system "cmake", "--build", "."
system "cmake", "--build", ".", "--target", "install"
Expand Down
3 changes: 1 addition & 2 deletions Formula/magnum-bindings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def install
system "mkdir build"
cd "build" do
system "cmake",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_PREFIX=#{prefix}",
*std_cmake_args,
"-DWITH_PYTHON=ON",
".."
system "cmake", "--build", "."
Expand Down
3 changes: 1 addition & 2 deletions Formula/magnum-examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def install
# https://github.com/Homebrew/homebrew-core/pull/4482 and nothing
# happened with https://github.com/erincatto/Box2D/issues/431 yet
system "cmake",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_PREFIX=#{prefix}",
*std_cmake_args,
"-DWITH_ANIMATED_GIF_EXAMPLE=ON",
"-DWITH_ARCBALL_EXAMPLE=ON",
"-DWITH_AREALIGHTS_EXAMPLE=ON",
Expand Down
3 changes: 1 addition & 2 deletions Formula/magnum-extras.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ def install
system "mkdir build"
cd "build" do
system "cmake",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_PREFIX=#{prefix}",
*std_cmake_args,
"-DWITH_PLAYER=ON",
"-DWITH_UI=ON",
"-DWITH_UI_GALLERY=ON",
Expand Down
3 changes: 1 addition & 2 deletions Formula/magnum-integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ def install
system "mkdir build"
cd "build" do
system "cmake",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_PREFIX=#{prefix}",
*std_cmake_args,
"-DWITH_BULLET=#{(build.with? 'bullet') ? 'ON' : 'OFF'}",
"-DWITH_DART=#{(build.with? 'dartsim') ? 'ON' : 'OFF'}",
"-DWITH_EIGEN=#{(build.with? 'eigen') ? 'ON' : 'OFF'}",
Expand Down
3 changes: 1 addition & 2 deletions Formula/magnum-plugins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def install
system "mkdir build"
cd "build" do
system "cmake",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_PREFIX=#{prefix}",
*std_cmake_args,
"-DWITH_ASSIMPIMPORTER=#{(build.with? 'assimp') ? 'ON' : 'OFF'}",
"-DWITH_BASISIMAGECONVERTER=ON",
"-DWITH_BASISIMPORTER=ON",
Expand Down
3 changes: 1 addition & 2 deletions Formula/magnum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def install
system "mkdir build"
cd "build" do
system "cmake",
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_INSTALL_PREFIX=#{prefix}",
*std_cmake_args,
"-DMAGNUM_PLUGINS_DIR=#{HOMEBREW_PREFIX}/lib/magnum",
"-DWITH_AUDIO=ON",
"-DWITH_GLFWAPPLICATION=ON",
Expand Down

0 comments on commit 56a33c1

Please sign in to comment.