diff --git a/Formula/c/cpp-gsl.rb b/Formula/c/cpp-gsl.rb index c369c101fff40..31506e2007d56 100644 --- a/Formula/c/cpp-gsl.rb +++ b/Formula/c/cpp-gsl.rb @@ -2,19 +2,21 @@ class CppGsl < Formula desc "Microsoft's C++ Guidelines Support Library" homepage "https://github.com/Microsoft/GSL" url "https://github.com/Microsoft/GSL/archive/refs/tags/v4.1.0.tar.gz" - sha256 "14255cb38a415ba0cc4f696969562be7d0ed36bbaf13c5e4748870babf130c48" + sha256 "0a227fc9c8e0bf25115f401b9a46c2a68cd28f299d24ab195284eb3f1d7794bd" license "MIT" head "https://github.com/Microsoft/GSL.git", branch: "main" bottle do - sha256 cellar: :any_skip_relocation, all: "6370fc32875a61aef5e85f2eac5ea7c459f5dc5cbe665a27a20784bc9502daf8" + rebuild 1 + sha256 cellar: :any_skip_relocation, all: "4133296b6d12d22ecc2f1a9dce98820203355a2481cc4dbcbfb1d1e371551a8d" end depends_on "cmake" => :build def install - system "cmake", ".", "-DGSL_TEST=false", *std_cmake_args - system "make", "install" + system "cmake", "-S", ".", "-B", "build", "-DGSL_TEST=false", *std_cmake_args + system "cmake", "--build", "build" + system "cmake", "--install", "build" end test do @@ -25,6 +27,7 @@ def install return 0; } CPP + system ENV.cxx, "test.cpp", "-o", "test", "-std=c++14" system "./test" end