From 18fa2d39074b053b370fd544d93f55ec33c1372f Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 13:01:19 -0500 Subject: [PATCH 01/11] cctz: remove duplicate `BUILD_TESTING` arg --- Formula/c/cctz.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/c/cctz.rb b/Formula/c/cctz.rb index 1fb18fedcbce..088cf1db9a99 100644 --- a/Formula/c/cctz.rb +++ b/Formula/c/cctz.rb @@ -20,7 +20,7 @@ class Cctz < Formula depends_on "cmake" => :build def install - args = ["-DBUILD_TESTING=OFF", "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"] + args = ["-DCMAKE_POSITION_INDEPENDENT_CODE=ON"] system "cmake", "-S", ".", "-B", "build_shared", "-DBUILD_SHARED_LIBS=ON", *args, *std_cmake_args system "cmake", "--build", "build_shared" From b0f85a8a8a3d3bb13b9ded0b6b2ad5138b511ed6 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 13:08:09 -0500 Subject: [PATCH 02/11] cnats: remove duplicate `BUILD_TESTING` arg --- Formula/c/cnats.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Formula/c/cnats.rb b/Formula/c/cnats.rb index 2a1b56342cb8..4c311e715549 100644 --- a/Formula/c/cnats.rb +++ b/Formula/c/cnats.rb @@ -21,12 +21,7 @@ class Cnats < Formula depends_on "protobuf-c" def install - args = %W[ - -DCMAKE_INSTALL_PREFIX=#{prefix} - -DBUILD_TESTING=OFF - ] - - system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args + system "cmake", "-S", ".", "-B", "build", *std_cmake_args system "cmake", "--build", "build" system "cmake", "--install", "build" end From 005295169741e4d3acaca52647fd19907edecedd Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 12:59:58 -0500 Subject: [PATCH 03/11] cryfs: remove duplicate `BUILD_TESTING` arg --- Formula/c/cryfs.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/Formula/c/cryfs.rb b/Formula/c/cryfs.rb index 669092a7ea2d..30b14f5d4db9 100644 --- a/Formula/c/cryfs.rb +++ b/Formula/c/cryfs.rb @@ -25,7 +25,6 @@ class Cryfs < Formula def install system "cmake", "-B", "build", "-S", ".", - "-DBUILD_TESTING=off", "-DCRYFS_UPDATE_CHECKS=OFF", "-DDEPENDENCY_CONFIG=cmake-utils/DependenciesFromLocalSystem.cmake", *std_cmake_args From 741ed5c97b2a62d2691288e0c23a9f38b99d3727 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 13:07:02 -0500 Subject: [PATCH 04/11] dartsim: remove duplicate `BUILD_TESTING` arg --- Formula/d/dartsim.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Formula/d/dartsim.rb b/Formula/d/dartsim.rb index 29899571ce4b..684a5b73b1b9 100644 --- a/Formula/d/dartsim.rb +++ b/Formula/d/dartsim.rb @@ -40,7 +40,11 @@ class Dartsim < Formula end def install - args = std_cmake_args + args = %W[ + -DCMAKE_INSTALL_RPATH=#{rpath} + -DDART_BUILD_DARTPY=OFF + -DDART_ENABLE_SIMD=OFF + ] if OS.mac? # Force to link to system GLUT (see: https://cmake.org/Bug/view.php?id=16045) @@ -48,11 +52,7 @@ def install args << "-DGLUT_glut_LIBRARY=#{glut_lib}" end - args << "-DBUILD_TESTING=OFF" - args << "-DDART_BUILD_DARTPY=OFF" - args << "-DDART_ENABLE_SIMD=OFF" - - system "cmake", "-S", ".", "-B", "build", "-DCMAKE_INSTALL_RPATH=#{rpath}", *args + system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args system "cmake", "--build", "build" system "cmake", "--install", "build" From e1432486365053e429b3fbbb4e123462b60d5499 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 13:03:23 -0500 Subject: [PATCH 05/11] embree: remove duplicate `BUILD_TESTING` arg --- Formula/e/embree.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/Formula/e/embree.rb b/Formula/e/embree.rb index 36b784e52bcd..9ae1583cbeb1 100644 --- a/Formula/e/embree.rb +++ b/Formula/e/embree.rb @@ -28,7 +28,6 @@ class Embree < Formula def install args = %w[ - -DBUILD_TESTING=OFF -DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF -DEMBREE_ISPC_SUPPORT=ON -DEMBREE_TUTORIALS=OFF From f3d36f35ba5052b317f15e2cc70db09e20bee657 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 13:09:10 -0500 Subject: [PATCH 06/11] inja: remove duplicate `BUILD_TESTING` arg --- Formula/i/inja.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Formula/i/inja.rb b/Formula/i/inja.rb index 9c9793623906..a3bdb9448b64 100644 --- a/Formula/i/inja.rb +++ b/Formula/i/inja.rb @@ -15,8 +15,7 @@ class Inja < Formula depends_on "nlohmann-json" def install - system "cmake", ".", "-DBUILD_TESTING=OFF", - "-DBUILD_BENCHMARK=OFF", + system "cmake", ".", "-DBUILD_BENCHMARK=OFF", "-DINJA_USE_EMBEDDED_JSON=OFF", *std_cmake_args system "make", "install" From 8336cf5ccf3c4b4854753139877a333fe798677d Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 13:03:57 -0500 Subject: [PATCH 07/11] libchewing: remove duplicate `BUILD_TESTING` arg --- Formula/lib/libchewing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/lib/libchewing.rb b/Formula/lib/libchewing.rb index 58f08f9ff564..4c1e11490803 100644 --- a/Formula/lib/libchewing.rb +++ b/Formula/lib/libchewing.rb @@ -25,7 +25,7 @@ class Libchewing < Formula end def install - system "cmake", "-S", ".", "-B", "build", "-DBUILD_TESTING=OFF", *std_cmake_args + system "cmake", "-S", ".", "-B", "build", *std_cmake_args system "cmake", "--build", "build" system "cmake", "--install", "build" end From 4d972a7cd2bb34ecd258872608973d4ffdbdb1bd Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 13:02:47 -0500 Subject: [PATCH 08/11] netcdf-cxx: remove duplicate `BUILD_TESTING` arg --- Formula/n/netcdf-cxx.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Formula/n/netcdf-cxx.rb b/Formula/n/netcdf-cxx.rb index 30bb202167df..14a54b9e9d8f 100644 --- a/Formula/n/netcdf-cxx.rb +++ b/Formula/n/netcdf-cxx.rb @@ -24,8 +24,12 @@ class NetcdfCxx < Formula end def install - args = std_cmake_args + %w[-DBUILD_TESTING=OFF -DNCXX_ENABLE_TESTS=OFF -DENABLE_TESTS=OFF -DENABLE_NETCDF_4=ON - -DENABLE_DOXYGEN=OFF] + args = std_cmake_args + %w[ + -DNCXX_ENABLE_TESTS=OFF + -DENABLE_TESTS=OFF + -DENABLE_NETCDF_4=ON + -DENABLE_DOXYGEN=OFF + ] # https://github.com/Unidata/netcdf-cxx4/issues/151#issuecomment-2041111870 args << "-DHDF5_C_LIBRARY_hdf5=#{Formula["hdf5"].opt_lib}" From 5f3d581a9ed7541badf4e06ef4e99f0200cae0e3 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 13:04:44 -0500 Subject: [PATCH 09/11] netcdf-fortran: remove duplicate `BUILD_TESTING` arg --- Formula/n/netcdf-fortran.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/n/netcdf-fortran.rb b/Formula/n/netcdf-fortran.rb index b6f0bb95c769..1cab1566c44b 100644 --- a/Formula/n/netcdf-fortran.rb +++ b/Formula/n/netcdf-fortran.rb @@ -21,7 +21,7 @@ class NetcdfFortran < Formula depends_on "netcdf" def install - args = std_cmake_args + %w[-DBUILD_TESTING=OFF -DENABLE_TESTS=OFF -DENABLE_NETCDF_4=ON -DENABLE_DOXYGEN=OFF] + args = std_cmake_args + %w[-DENABLE_TESTS=OFF -DENABLE_NETCDF_4=ON -DENABLE_DOXYGEN=OFF] # Help netcdf-fortran find netcf # https://github.com/Unidata/netcdf-fortran/issues/301#issuecomment-1183204019 From 1d87e5cd8b64cc68ab160f796006ca9410a8053c Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 13:05:25 -0500 Subject: [PATCH 10/11] opencl-clhpp-headers: remove duplicate `BUILD_TESTING` arg --- Formula/o/opencl-clhpp-headers.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Formula/o/opencl-clhpp-headers.rb b/Formula/o/opencl-clhpp-headers.rb index b5c8330c03a7..b0cb3464a753 100644 --- a/Formula/o/opencl-clhpp-headers.rb +++ b/Formula/o/opencl-clhpp-headers.rb @@ -17,11 +17,9 @@ class OpenclClhppHeaders < Formula depends_on "opencl-headers" def install - system "cmake", "-DBUILD_TESTING=OFF", + system "cmake", "-S", ".", "-B", "build", "-DBUILD_DOCS=OFF", "-DBUILD_EXAMPLES=OFF", - "-S", ".", - "-B", "build", *std_cmake_args system "cmake", "--build", "build" system "cmake", "--install", "build" From 1b034d3e6653636db995ee0edbfe1213cf081cea Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sun, 1 Dec 2024 13:00:38 -0500 Subject: [PATCH 11/11] uvw: remove duplicate `BUILD_TESTING` arg --- Formula/u/uvw.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/Formula/u/uvw.rb b/Formula/u/uvw.rb index 0eed2369650e..ce9e415ce4f0 100644 --- a/Formula/u/uvw.rb +++ b/Formula/u/uvw.rb @@ -29,7 +29,6 @@ class Uvw < Formula def install args = %w[ -DBUILD_UVW_LIBS=ON - -DBUILD_TESTING=OFF -DBUILD_DOCS=OFF ] system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args