diff --git a/Formula/cucumber-cpp.rb b/Formula/cucumber-cpp.rb index a0acddb95885..cc61356c0a4a 100644 --- a/Formula/cucumber-cpp.rb +++ b/Formula/cucumber-cpp.rb @@ -30,6 +30,10 @@ def install test do ENV["GEM_HOME"] = testpath ENV["BUNDLE_PATH"] = testpath + if MacOS.version == :high_sierra + ENV.delete("CPATH") + ENV.delete("SDKROOT") + end system "gem", "install", "cucumber", "-v", "3.0.0" (testpath/"features/test.feature").write <<~EOS