diff --git a/Formula/c/chaiscript.rb b/Formula/c/chaiscript.rb index 30f3968b37795..ce2664bc77a3c 100644 --- a/Formula/c/chaiscript.rb +++ b/Formula/c/chaiscript.rb @@ -27,8 +27,9 @@ class Chaiscript < Formula depends_on "cmake" => :build def install - system "cmake", ".", *std_cmake_args - system "make", "install" + system "cmake", "-S", ".", "-B", "build", *std_cmake_args + system "cmake", "--build", "build" + system "cmake", "--install", "build" end test do @@ -36,6 +37,7 @@ def install #include #include #include + int main() { chaiscript::ChaiScript chai; assert(chai.eval("123") == 123);